• 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="myChart"><a class="zc-ref" href="https://www.zingchart.com">Powered by ZingChart</a></div>
      <script>
        ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
        var myConfig = {
          type: 'range',
          plot: {
            minMarker: {
              size: 8
            },
            maxMarker: {
              visible: false
            }
          },
          series: [{
              values: [
                [1457101800000, [35, 40]],
                [1457103600000, [40, 42]],
                [1457105400000, [67, 75]],
                [1457107200000, [80, 89]],
                [1457109000000, [25, 33]],
                [1457110800000, [19, 34]],
                [1457112600000, [49, 67]]
              ]
            },
            {
              values: [
                [1457101800000, [25, 33]],
                [1457103600000, [49, 59]],
                [1457105400000, [30, 39]],
                [1457107200000, [15, 16]],
                [1457109000000, [51, 60]],
                [1457110800000, [89, 95]],
                [1457112600000, [31, 55]]
              ]
            }
          ],
    
          utc: true,
          timezone: -5,
          scaleX: {
            minValue: 1457101800000,
            maxValue: 1457112600000,
            step: '30minute',
            transform: {
              type: 'date',
              all: '%g:%i'
            },
            item: {
              fontSize: 10
            }
          },
          scaleY: {
            values: '0:100:25',
            format: '$%v',
            item: {
              fontSize: 10
            },
            guide: {
              lineStyle: 'solid'
            }
          }
        };
    
        zingchart.render({
          id: 'myChart',
          data: myConfig,
          height: 300,
          width: '100%'
        });
      </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="myChart"><a class="zc-ref" href="https://www.zingchart.com">Powered by ZingChart</a></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 myConfig = {
      type: 'range',
      plot: {
        minMarker: {
          size: 8
        },
        maxMarker: {
          visible: false
        }
      },
      series: [{
          values: [
            [1457101800000, [35, 40]],
            [1457103600000, [40, 42]],
            [1457105400000, [67, 75]],
            [1457107200000, [80, 89]],
            [1457109000000, [25, 33]],
            [1457110800000, [19, 34]],
            [1457112600000, [49, 67]]
          ]
        },
        {
          values: [
            [1457101800000, [25, 33]],
            [1457103600000, [49, 59]],
            [1457105400000, [30, 39]],
            [1457107200000, [15, 16]],
            [1457109000000, [51, 60]],
            [1457110800000, [89, 95]],
            [1457112600000, [31, 55]]
          ]
        }
      ],
    
      utc: true,
      timezone: -5,
      scaleX: {
        minValue: 1457101800000,
        maxValue: 1457112600000,
        step: '30minute',
        transform: {
          type: 'date',
          all: '%g:%i'
        },
        item: {
          fontSize: 10
        }
      },
      scaleY: {
        values: '0:100:25',
        format: '$%v',
        item: {
          fontSize: 10
        },
        guide: {
          lineStyle: 'solid'
        }
      }
    };
    
    zingchart.render({
      id: 'myChart',
      data: myConfig,
      height: 300,
      width: '100%'
    });