Home Forums Chart Support chart is not loading when intervaltype is change Reply To: chart is not loading when intervaltype is change

#41925

  window.onload = function () {
    var chart = new CanvasJS.StockChart("chartContainer",
    {
      zoomEnabled: true,      
      
      title:{
       text: "Chart With Date-Time Stamps Inputs"       
     },
      axisX: {
        interval: 2,
        intervalType: "minute",
         title: "time",
        },

     data: [
        {
            "color": "#E9BD26",
            "dataPoints": [
                {
                    "x": 1673420752830,
                    "y": 200
                },
                {
                    "x": 1673420588986,
                    "y": 13
                }
            ],
            "name": "PAO2",
            "type": "line",
            "xValueType": "dateTime"
        }
    ]
  });

    chart.render();
  }