Chart
Definition
The Chart component plots data originating from it’s attached Data components. Five different Chart types are available, including Line, Area, Scatter, Bar and Pie, which can be changed by the Type
property. The Chart component itself has various other properties that change the appearance of the Chart, such as {Description
, GridEnabled
,
Properties
- BackgroundColor
- Specifies the chart’s background color as an alpha-red-green-blue integer.
- Description
- Specifies the text displayed by the description label inside the Chart. Specifying an empty string (“”) will not display any label.
- GridEnabled
- Changes the visibility of the Chart’s grid, if the Chart Type is set to a Chart with an Axis (applies for Area, Bar, Line, Scatter Chart types).
- Height
- Specifies the
Chart
’s vertical height, measured in pixels. - HeightPercent
- Specifies the
Chart
’s vertical height as a percentage of theScreen
’sHeight
. - Labels
- Changes the Chart’s X axis labels to the specified List, if the Chart’s Type is set to a Chart with an Axis.The first entry of the List corresponds to the minimum x value of the data, the second to the min x value + 1, and so on.
If a label is not specified for an x value, a default value is used (the x value of the axis tick at that location).
- LabelsFromString
- Specifies the labels to set to the Chart’s X Axis, provided the current view is a Chart with an X Axis. The labels are specified as a single comma-separated values String (meaning each value is separated by a comma). See
Labels
for more details on how the Labels are applied to the Chart. - LegendEnabled
- Changes the visibility of the Chart’s Legend.
- PieRadius
- Sets the Pie Radius of the Chart. If the current type is not the Pie Chart, the value has no effect.
- Type
- Specifies the type of the Chart, which determines how to visualize the data.
- Visible
- Specifies whether the
Chart
should be visible on the screen. Value istrue
if theChart
is showing andfalse
if hidden. - Width
- Specifies the horizontal width of the
Chart
, measured in pixels. - WidthPercent
- Specifies the horizontal width of the
Chart
as a percentage of theScreen
’sWidth
.