Optional
animeSet 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
}],
}]);
Optional
chartList of series of data points. Each series much have the same number of data points.
Optional
fillInterior Color used by area
, bar
and pie
charts.
Optional
legendDefines the chart legend. At the moment is only supported stacked left or right top legend.
Optional
strokeOutline Color used by area
, bar
and pie
charts, and line color for line
chart.
Optional
strokeOptional
titleDefines the chart title. At the moment is only supported horizontal top or bottom titles.
Parameters for both Axis Charts and Pie Charts.