Home forums Chart Support Chart type:pie, not all label are visible

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #25718

    Hello, i use Chart type pie. But not all label are visible
    Can you me help please?

    Here is my HTML

    <script type=”text/javascript”>
    window.onload = function () {
    var chart = new CanvasJS.Chart(“chartContainer”,
    text: “Where is label5 ?”

    data: [
    type: “pie”,

    legendText: “{indexLabel}”,
    dataPoints: [{“y”:3.52941179,”label”:”label1″},
    {“y”:4.70588255,”label”:”label5″},// > 6.70588255 ok
    <script type=”text/javascript” src=”https://canvasjs.com/assets/script/canvasjs.min.js”></script&gt;
    <div id=”chartContainer” style=”height: 300px; width: 100%;”></div>

    • This topic was modified 1 year, 8 months ago by Vlad.

    Here is my JSFiddle



    IndexLabels / labels in Pie Chart are skipped whenever they get closer to other indexLabels – this behavior is by design. You can workaround this issue by rotating the Pie Chart by setting startAngle as shown in this JSFiddle.

    Vishwas R
    Team CanvasJS


    Thank you very much, you helped me!

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

You must be logged in to reply to this topic.