ChartJS
Guide for using svyChartJS in your applications
svyChartJS
Getting Started
Example Usage
//Your data node object which requires a type and the data.
var data = {
type: 'pie',
data: {
labels: ["Red",
"Green",
"Yellow"],
datasets: [{
data: [300, 50, 100],
backgroundColor: [
"#F7464A",
"#46BFBD",
"#FDB45C"],
hoverBackgroundColor: [
"#FF5A5E",
"#5AD3D1",
"#FFC870"]
}]
}
}
//Initialize the chart by using setData
elements.chart.setData(data);Chart Customization
Support for Outlabels plugin
Option callbacks
Using with responsive forms
svyChartJS Properties
svyChartJS Events
svyChartJS API Documentation
Method Summary
generateLegend
drawChart
refreshChart
setData
setPlugin
setOptions
clearChart
Last updated
Was this helpful?