Show all posts by user
Use this forum if you have issues or you want to discuss about the JS Charts.
Pie chart only 1 sector - 14 years ago
Hello, It seems that the pie chart doesn't work properly when the data only has 1 sector. following is the code. var myData = new Array(['OK', 1]); var colors = ['#00cc33']; myChart = new JSChart('divPieGraph', 'pie'); myChart.setDataArray(myData); myChart.colorizePie(colors); myChart.setTitle('test'); //myChart.setTitleColor('#8E8E8E'); myChart.setTitleFontSize(11); myChartby chenzero - Discussions & Support