jc-pie-chart
The schema defines the following properties:
Property | Type | Required | Description |
type | component.pie-chart | true | |
instanceId | InstanceId | Expression | false | |
when | Expression | boolean | false | |
options | Pie Chart Options | true | |
Properties of the options object:
Property | Type | Required | Description |
series | Pie Chart Series[] | true | Data for pies of a chart. |
chart | object | false | General options of chart (width, height, etc) |
yAxis | object | false | Options for yAxis |
xAxis | object | false | Options for xAxis |
legend | object | false | Legend of chart |
plotOptions | Plot Options | false | Options of plot |
onPress | false | Action to perform when chart is pressed |
Data for pies of a chart.
The object is an array with all elements of the type object.
The array object has the following properties:
Property | Type | Required | Description |
data | string | string | true | There are a couple of available formats.data=[23, 89] data=[{"x": 1, "y": 23}, {"x": 2, "y": 89}] data=[{"y": 23, "color": "color2"}, {"y": 89, "color": "color3" }] data=[[1,23], [2,89]] |
name | string | Expression | TextWithFormat | TextLocale | false | Name of series |
description | string | Expression | TextWithFormat | TextLocale | false | Description of series |
dataLabels | object[] | false | Configuration of labels visible on chart |
color | enum<string> | string | false | Color of series. If expression is used, expression must be evaluated to the predefined color enum. |
layout | enum<string> | false | Type of series |
There are a couple of available formats.
data=[23, 89] data=[{"x": 1, "y": 23}, {"x": 2, "y": 89}] data=[{"y": 23, "color": "color2"}, {"y": 89, "color": "color3" }] data=[[1,23], [2,89]]
The object must be any of the following types:
Name of series
Description of series
Configuration of labels visible on chart
The object is an array with all elements of the type object.
The array object has the following properties:
Color of series. If expression is used, expression must be evaluated to the predefined color enum.
The object must be any of the following types:
Type of series
This element must be one of the following enum values:
- pie
- arch
General options of chart (width, height, etc)
Options for yAxis
Options for xAxis
Legend of chart
Options of plot
Action to perform when chart is pressed
