OptionalanimeSet with a unique virtual selector, to be used another addAnimations to animate the chart.
scene.addAnimations([{
selector: 'canvas',
tasks: [{
handler: 'chart',
params: {
data: [[100, 200, 50, 140, 300]],
pointHeightStart: 0.1, // defined the initial value for the animation point-height property
animeSelector: 'chart-anime-02', // unique animation selector to be used by the animator
} as BeamToIX.AxisChartTaskParams,
}],
}])
.addAnimations([{
selector: `%chart-anime-02`, // animation selector defined previously, prefixed with '%'
duration: `1s`,
props: [{
prop: 'point-height', // property which initial value is 0.1
value: 1, // value at the end of animation
}],
}]);
OptionalchartList of series of data points. Each series much have the same number of data points.
OptionalfillInterior Color used by area, bar and pie charts.
OptionallegendDefines the chart legend. At the moment is only supported stacked left or right top legend.
OptionalstrokeOutline Color used by area, bar and pie charts, and line color for line chart.
OptionalstrokeOptionaltitleDefines the chart title. At the moment is only supported horizontal top or bottom titles.
Parameters for both Axis Charts and Pie Charts.