• Edit
  • Download
  • <!DOCTYPE html>
    <html>
    
    <head>
      <meta charset="utf-8">
      <title>ZingSoft Demo</title>
    
      <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
      <style>
        html,
        body {
          height: 100%;
          width: 100%;
          margin: 0;
          padding: 0;
        }
    
        #myChart {
          height: 100%;
          width: 100%;
          min-height: 150px;
        }
    
        .zc-ref {
          display: none;
        }
      </style>
    </head>
    
    <body>
      <div id="pointHistoryChart" class="point-history-chart"></div>
      <script>
        ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
        var chartData = {
          "type": "line",
          title: {
            text: "My First Chart"
          },
          series: [{
              values: [35, 42, 59, 59]
            },
            {
              values: [35, 41, 59, 59]
            },
            {
              values: [35, 40, 59, 59]
            },
            {
              values: [35, 39, 59, 59]
            },
            {
              values: [35, 38, 59, 59]
            },
            {
              values: [35, 37, 59, 59]
            },
            {
              values: [35, 36, 59, 59]
            },
            {
              values: [35, 35, 59, 59]
            },
            {
              values: [35, 34, 59, 59]
            },
            {
              values: [35, 33, 59, 59]
            },
            {
              values: [35, 32, 59, 59]
            },
            {
              values: [35, 31, 59, 59]
            },
            {
              values: [35, 30, 59, 59]
            },
            {
              values: [35, 29, 59, 59]
            },
            {
              values: [35, 28, 59, 59]
            },
            {
              values: [35, 27, 59, 59]
            },
            {
              values: [35, 26, 59, 59]
            },
            {
              values: [35, 25, 59, 59]
            },
            {
              values: [35, 24, 59, 59]
            },
            {
              values: [35, 23, 59, 59]
            },
            {
              values: [35, 22, 59, 59]
            },
            {
              values: [35, 21, 59, 59]
            },
            {
              values: [35, 20, 59, 59]
            },
            {
              values: [35, 43, 59, 59]
            },
            {
              values: [35, 44, 59, 59]
            },
            {
              values: [35, 45, 59, 59]
            },
            {
              values: [35, 46, 59, 59]
            },
            {
              values: [35, 47, 59, 59]
            },
            {
              values: [35, 48, 59, 59]
            },
            {
              values: [35, 49, 59, 59]
            },
            {
              values: [35, 50, 59, 59]
            },
            {
              values: [35, 51, 59, 59]
            },
            {
              values: [35, 52, 59, 59]
            },
            {
              values: [35, 53, 59, 59]
            },
            {
              values: [35, 54, 59, 59]
            },
            {
              values: [35, 55, 59, 59]
            },
            {
              values: [35, 56, 59, 59]
            },
            {
              values: [35, 57, 59, 59]
            },
            {
              values: [28, 58, 39, 36]
            }
          ],
          "crosshair-x": {
            "plot-label": {
              "html-mode": true,
              "table-columns": 4
            }
          },
          height: "400px",
          "scale-y": {
            "max-value": 60,
            "min-value": 20
          }
        };
        zingchart.render({ // Render Method[3]
          id: "pointHistoryChart",
          data: chartData
        });
      </script>
    </body>
    
    </html>
    <!DOCTYPE html>
    <html>
    
    <head>
      <meta charset="utf-8">
      <title>ZingSoft Demo</title>
    
      <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
    </head>
    
    <body>
      <div id="pointHistoryChart" class="point-history-chart"></div>
    </body>
    
    </html>
    html,
    body {
      height: 100%;
      width: 100%;
      margin: 0;
      padding: 0;
    }
    
    #myChart {
      height: 100%;
      width: 100%;
      min-height: 150px;
    }
    
    .zc-ref {
      display: none;
    }
    var chartData = {
      "type": "line",
      title: {
        text: "My First Chart"
      },
      series: [{
          values: [35, 42, 59, 59]
        },
        {
          values: [35, 41, 59, 59]
        },
        {
          values: [35, 40, 59, 59]
        },
        {
          values: [35, 39, 59, 59]
        },
        {
          values: [35, 38, 59, 59]
        },
        {
          values: [35, 37, 59, 59]
        },
        {
          values: [35, 36, 59, 59]
        },
        {
          values: [35, 35, 59, 59]
        },
        {
          values: [35, 34, 59, 59]
        },
        {
          values: [35, 33, 59, 59]
        },
        {
          values: [35, 32, 59, 59]
        },
        {
          values: [35, 31, 59, 59]
        },
        {
          values: [35, 30, 59, 59]
        },
        {
          values: [35, 29, 59, 59]
        },
        {
          values: [35, 28, 59, 59]
        },
        {
          values: [35, 27, 59, 59]
        },
        {
          values: [35, 26, 59, 59]
        },
        {
          values: [35, 25, 59, 59]
        },
        {
          values: [35, 24, 59, 59]
        },
        {
          values: [35, 23, 59, 59]
        },
        {
          values: [35, 22, 59, 59]
        },
        {
          values: [35, 21, 59, 59]
        },
        {
          values: [35, 20, 59, 59]
        },
        {
          values: [35, 43, 59, 59]
        },
        {
          values: [35, 44, 59, 59]
        },
        {
          values: [35, 45, 59, 59]
        },
        {
          values: [35, 46, 59, 59]
        },
        {
          values: [35, 47, 59, 59]
        },
        {
          values: [35, 48, 59, 59]
        },
        {
          values: [35, 49, 59, 59]
        },
        {
          values: [35, 50, 59, 59]
        },
        {
          values: [35, 51, 59, 59]
        },
        {
          values: [35, 52, 59, 59]
        },
        {
          values: [35, 53, 59, 59]
        },
        {
          values: [35, 54, 59, 59]
        },
        {
          values: [35, 55, 59, 59]
        },
        {
          values: [35, 56, 59, 59]
        },
        {
          values: [35, 57, 59, 59]
        },
        {
          values: [28, 58, 39, 36]
        }
      ],
      "crosshair-x": {
        "plot-label": {
          "html-mode": true,
          "table-columns": 4
        }
      },
      height: "400px",
      "scale-y": {
        "max-value": 60,
        "min-value": 20
      }
    };
    zingchart.render({ // Render Method[3]
      id: "pointHistoryChart",
      data: chartData
    });