Home Forums Chart Support All Labels are not showing in Column chart

All Labels are not showing in Column chart

Viewing 2 posts - 1 through 2 (of 2 total)
  • #25925

    Hello

    I try to edit on your example . Please check below code . I AxisY not showing text of all the column . it show alternate. My requirement is set chart with is 1000 and need to show 25 record but is showing only 5 record why ??

    <!DOCTYPE HTML>
    <html>
    <head>  
      <script type="text/javascript">
      window.onload = function () {
        var chart = new CanvasJS.Chart("chartContainer",
        {
          title: {
            text: "Axis Y labels with Formatted Numbers"
          },
          axisY:{    
            valueFormatString:  "#,##0.##", // move comma to change formatting
            prefix: "$"
         },
          data: [
          {        
            type: "column",
            dataPoints: [
            { x: 1, y: 7100 },
            { x: 2, y: 5500},
            { x: 3, y: 5000 },
            { x: 4, y: 6500 },
            { x: 5, y: 9500 },
            { x: 6, y: 6800 },
            { x: 7, y: 2800 },
            { x: 8, y: 3400 },
            { x: 9, y: 1400}
            ]
          }
          ]
        });
    
        chart.render();
      }
      </script>
      <script type="text/javascript" src="https://cdn.canvasjs.com/canvasjs.min.js"></script>
    </head>
    <body>
      <div id="chartContainer" style="height: 300px; width: 100%;">
      </div>
    </body>
    </html>
    #25942

    @kinshuk4u4u,

    Do you mean showing labels in axisY at an interval of 1000? If so you can customize it according to your requirements by setting interval property.

    If this doesn’t fulfill your requirements, kindly brief us more along with an example or pictorial representation so that we can understand it better and help you out.

    ___________
    Indranil Deo
    Team CanvasJS

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

You must be logged in to reply to this topic.