ChartJS for DroidScript is a chart plugin built from Chart.js library. You can use it to implement elegant and interactive charts on your DroidScript app.
In order to use ChartJS for DroidScript, you must first load the plugin at the top of your script using the LoadPlugin method like this:
Then you can create an instance of the plugin object like this:
cht = app.LoadChartJS();
Once you have the ChartJS object, you can now create a chart by using the CreateChart method like this:
data : A chart's data. Refer to each chart type for data object.
type : Type of a chart. "line", "bar", "horizontalBar", "radar", "pie", "doughnut", "polarArea", "bubble", "scatter"
width: A fraction of the screen width.
height: A fraction of the screen height.
options: Chart options. You can pass null to this if you want the default chart options.
Below are the complete guide for all the charts you can create from chartjs.
Below are the available methods that might help you a lot.
More examples for all the charts you can create with chartjs.
Chart.js is available under the MIT license. Visit the Chart.js website for a complete documentation.