Chart Element

PropTypeRequiredExampleValue RangeDescription
chartTypestringtrue--The type of chart to display (e.g., bar, line, pie).
chartWidthnumbertrue--The width of the chart canvas, in pixels.
chartHeightnumbertrue--The height of the chart canvas, in pixels.
bgColorstringfalse--The background color of the chart, in hex format.
bgAlphanumberfalse-0 - 1The transparency level of the chart background. 1 represents full opacity, and 0 represents full transparency.
showAxisbooleanfalse--Whether to display the chart axes.
axisColorstringfalse--The color of the chart axes, in hex format.
axisWidthnumberfalse--The width of the chart axes, in pixels.
showGridbooleanfalse--Whether to display the chart grid.
gridColorstringfalse--The color of the chart grid, in hex format.
gridAlphanumberfalse-0 - 1The transparency level of the chart grid. 1 represents full opacity, and 0 represents full transparency.
showLabelsbooleanfalse--Whether to display chart labels.
dataSetarrayfalse--An array of data objects used to render the chart.

Note: The chartType determines the visualization style, while dataSet contains the data to be displayed in the chart.

chartElement.json
1{ 2 "id": "chart-element-id", 3 "type": "Chart", 4 "start": 0, 5 "duration": 10, 6 "trackIndex": 0, 7 "x": 100, 8 "y": 100, 9 "chartType": "bar", 10 "chartWidth": 800, 11 "chartHeight": 600, 12 "bgColor": "#ffffff", 13 "bgAlpha": 1, 14 "showAxis": true, 15 "axisColor": "#000000", 16 "axisWidth": 2, 17 "showGrid": true, 18 "gridColor": "#cccccc", 19 "gridAlpha": 0.5, 20 "showLabels": true, 21 "dataSet": [ 22 { "label": "A", "value": 10 }, 23 { "label": "B", "value": 20 }, 24 { "label": "C", "value": 15 } 25 ] 26} 27