Home › Forums › Chart Support › What if, all y : data is 0 ? › Reply To: What if, all y : data is 0 ?
Example : <script type=”text/javascript”> window.onload = function () { var chart = new CanvasJS.Chart(“chartContainer”, { theme: “theme2”, title:{ text: “Gaming Consoles Sold in 2012” }, data: [ { type: “pie”, showInLegend: true, toolTipContent: “{y} – #percent %”, yValueFormatString: “#,##0,,.## Million”, legendText: “{indexLabel}”, dataPoints: [ { y: 0, indexLabel: “PlayStation 3” }, { y: 0, indexLabel: “Wii” }, { y: 0, indexLabel: “Xbox 360” }, { y: 0, indexLabel: “Nintendo DS”}, { y: 0, indexLabel: “PSP” }, { y: 0, indexLabel: “Nintendo 3DS”}, { y: 0, indexLabel: “PS Vita”} ] } ] }); chart.render(); } </script>