Article Preview
Buy Now
COLUMN
From 0 to 100
Creating Gauges with MBS and ChartDirector
Issue: 21.6 (November/December 2023)
Author: Stefanie Juchmes
Author Bio: Stefanie studied computer science at the university in Bonn. She came in touch with Xojo due to the work of her brother-in-law and got a junior developer position in early 2019 at Monkeybread Software.
Article Description: No description available.
Article Length (in bytes): 22,545
Starting Page Number: 81
Article Number: 21608
Resource File(s):
project21608.zip Updated: 2023-10-31 23:51:28
Related Link(s): None
Excerpt of article text...
Did you know that with the MBS plugins and a ChartDirector license you can design charts for your application? In this
Spotlight column, I will show you how to design linear meters and gauges charts with some examples.Full circle gauges Chart
Let's start with a full circle gauges Chart.
We now want to display a value on the meter. Let's assume that our scale can display values from
1
to100
. We now want to enter a value of55
on this scale. We can store the value (e.g. in our project as a constant).Next we create the environment in which our meter should be displayed. For this we create an object of the class
CDAngularMeterMBS
. In the constructor, we pass some parameters. We would like to have later a diagram environment which is 200x200 pixels large. For this reason, we indicate the width and the height with200
in the parameters. The background color should be white.Optionally, you can specify a border color in the parameters. The two color values can be specified either as integer or of type color.
...End of Excerpt. Please purchase the magazine to read the full article.