Skip to content

Pie Chart

This component displays a pie chart.

Property

NoItemInput ValueDefault ValueAction PropertyTypeAction Default ValueDescription
1IDStringAuto-generatedidstringThe [id] property cannot be set by actions.
2WidthString415widthstring415Component width
3HeightString515heightstring515Component height
4XStringxstringX coordinate position
5YStringystringY coordinate position
6LockBooleanOFFlockbooleanfalseWhen ON, the component stays fixed even when the screen is scrolled.
When OFF, the component moves along with the screen scroll.
Added in v4.1.0.
7Chart TypeSelection
1. Pie
2. 3D Pie
3. Donut
PiechartTypestringpieChart drawing type
8VisibilityBooleanONvisibilitybooleantrueDisplay state
9ValueTable format
[Details 1]
[Details 1]valuearray of object[Details 1]Chart data
10SeriesTable format
[Details 2]
[Details 2]seriesobject[Details 2]Series drawing settings
11LegendTable format
[Details 3]
[Details 3]legendobject[Detail 3]Legend settings

Example 1 Value (value)

[
{"value":44.33,"color":"#394E79","month":"Jan"},
{"value":22.12,"color":"#5E83BA","month":"Feb"},
{"value":53.21,"color":"#C2D2E9","month":"Mar"},
{"value":34.25,"color":"#9A8BA5","month":"Apr"},
{"value":24.65,"color":"#E3C5D5","month":"May"}
]

Example 2 Series (series)

Set the drawing settings for the series.

ValueTextColorStrokeStroke Width
valuemonthcolor#FFFFFF2

Example 3 Legend (legend)

Sets legend information.

IdTextColorHorizontal AlignVertical Align
valueidcolorrighttop
  • The options for Horizontal Align are left | center | right (default).
  • The options for Vertical Align are top (default) | bottom.

Event

None