Chartjs options

Chartjs options

We added an advanced parameter chart_js_options with a JSON like style which is passed to chartjs in order to customize chart. Please see Chartjs documentation to see all customizable options. Use ‘ to surround string parameters.

Examples

[gfchartsreports height="400px" color_set="purple" color_rand="true" type="line" include="3" width="70%" chart_js_options="title: {display: true, text: 'Super Arial Title', fontSize:28,fontFamily:'Arial',fontColor:'#00B88A',fontStyle:'bold',padding:20}"]


[gfchartsreports height="400px" color_set="red" color_rand="true" type="bar" include="4" width="70%" chart_js_options="title: {display: true, text: 'Great Helevetica Title', fontSize:18,fontFamily:'Helevetica',fontColor:'#FF3366',fontStyle:'bold',padding:10}"]

About The Author

Comments (6)

Leave Comment