Home forums Using CanvasJS CanvasJS pie chart question

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #9654

    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,

    toolTipContent:”{legendText} {y}”,

    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

    #9657

    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.

    #9658

    @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.

    Ricky

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.