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
}],
}]);
Optionalbarx bar length for bar charts.
If it's zero, it's calculated automatically in order to fill the complete x-space.
OptionalchartOptionalchartList of series of data points. Each series much have the same number of data points.
OptionaldeviationOptionalfillInterior Color used by area, bar and pie charts.
OptionallabelsXOptionallabelsYOptionallegendDefines the chart legend. At the moment is only supported stacked left or right top legend.
OptionalmarkersOptionalmaxOptionalminOptionalnegativeColors to be used in case of the data point is negative.
At the moment, it only supports bar charts.
Optionalpointx distance between two data points. If it's zero, it's calculated automatically in order to fill the complete x-space. If the chart includes bars charts it must be big enough to include all the bars.
OptionalpointOptionalpointOptionalseriesx space between two bars. Used only in bar charts.
OptionalstrokeOutline Color used by area, bar and pie charts, and line color for line chart.
OptionalstrokeOptionalsweepOptionaltitleDefines the chart title. At the moment is only supported horizontal top or bottom titles.
OptionalxOptionaly0Optionaly
Parameters used by Axis Charts, which are all except Pie Charts. Axis Charts provide the following animators: