Home Forums Report Bugs setting a value undefined do not display the values (it works for null)

setting a value undefined do not display the values (it works for null)

Viewing 2 posts - 1 through 2 (of 2 total)
  • #45196
    
        var chart = new CanvasJS.Chart("chartContainer",
        {
          title: {
            text: "Axis Y with maximum"
          },
          axisY:{
          	maximum: undefined
         },
          data: [
          {
            type: "column",
            dataPoints: [
            { x: 100, y: 71 },
            { x: 200, y: 55},
            { x: 300, y: 50 },
            { x: 400, y: 65 },
            { x: 500, y: 95 },
            { x: 600, y: 68 },
            { x: 700, y: 28 },
            { x: 800, y: 34 },
            { x: 900, y: 14}
            ]
          }
          ]
        });
    
        chart.render();
      }
    #45201

    @scompliance,

    Axis maximum supports number, date-time (date object or timestamp) and null values & doesn’t support undefined. When null value is passed, maximum gets reset to default value.


    Sachin Bisht
    Team CanvasJS

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

You must be logged in to reply to this topic.