Forum Replies Created by kishanbhola1311@gmail.com

Viewing 2 posts - 1 through 2 (of 2 total)
  • in reply to: chart is not loading when intervaltype is change #41926

    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();
    }

    in 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();
      }
      
Viewing 2 posts - 1 through 2 (of 2 total)