You must be logged in to post your query.
Home › Forums › Chart Support › CanvasJS pie chart question
Tagged: Using CanvasJS
I got a question regarding of the pie chart.
I use
toolTipContent:”{legendText} {y}”,
dataPoints: [ { y: 100 legendText:”Excellent”, indexLabel: “Excellent” },{ y: 0, legendText:”Good”, indexLabel: “Good” },{ y: 0, legendText:”Mid”, indexLabel: “Mid” },{ y: 0, legendText:”Bad”, indexLabel: “Bad” }
]
The toolTipContent does not show up.
But,
dataPoints: [ { y: 50 legendText:”Excellent”, indexLabel: “Excellent” },{ y: 50, legendText:”Good”, indexLabel: “Good” },{ y: 0, legendText:”Mid”, indexLabel: “Mid” },{ y: 0, legendText:”Bad”, indexLabel: “Bad” }
It is working.
Why the first is not showing up?
Thanks,
Ricky
Ricky,
I just tried creating chart with your first set of options and it seems to be working fine. If you can reproduce the issue on jsfiddle, we can figure out the problem.
@Sanjoy,
After taking look your link, I copy & paste the code into my environment. But, it still does not work. However, I redownloaded the library and updated the canvasjs.min.js. Suddenly, it works.
Thanks for your help.
You must be logged in to reply to this topic. Login/Register