rex_canvas_chart_pie
Introduction
Draw a pie chart on the canvas object. i.e. it is a behavior of canvas plugin.
Reference from Chart.js.
Draw a pie chart on the canvas object. i.e. it is a behavior of canvas plugin.
Reference from Chart.js.
Drawing the pie chart follows these steps -
- Call "Action:Add data" to add a data with value and color.
- Call "Action:Draw" to draw this chart.
Reset chart
Call "Action:Clean all data" to clean all data. Then call "Action:Add data" to add new data.
Call "Action:Clean all data" to clean all data. Then call "Action:Add data" to add new data.
Configure
There are some configurations in properties table, which could set the color, line width, stroke width, or font. Or change them at runtime by actions.
There are some configurations in properties table, which could set the color, line width, stroke width, or font. Or change them at runtime by actions.
Animation
It also has a tween animation for drawing chart. Set "Animation" to "Yes", and give a "Duration" in properties table to turn on it. When drawing finished, "Condition:On drawing finished" will be triggered.
It is better to turn the animation off in cocoonJS environment.
It also has a tween animation for drawing chart. Set "Animation" to "Yes", and give a "Duration" in properties table to turn on it. When drawing finished, "Condition:On drawing finished" will be triggered.
It is better to turn the animation off in cocoonJS environment.