Skip to content

Pie Chart

This component displays a pie chart.

Tips

Properties

UI Dialog

ItemInput valueOptionDefault value
IDstringautomatic
Widthstring415
Heightstring515
Xstring
Ystring
Chart Typeoption• Pie
• Pie 3D
• Donut
Pie
Visibilityboolean• on
• off
on
Valuestring
Seriestable
Legendtable

Action

ItemPropertiesData TypeOptionsDefault value
IDidstringautomatic
Widthwidthstring415
Heightheightstring515
Xxstring
Yystring
Chart TypechartTypestring•pie
•pie3D
•donut
pie
Visibilityvisibilityboolean• true
• false
true
Valuevaluearray of object
Seriesseriesobject
Legendlegendobject

Tips

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