• Edit
  • Download
  • <!DOCTYPE html>
    <html>
    
    <head>
      <meta charset="utf-8">
      <title>ZingSoft Demo</title>
    
      <script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script>
      <style>
        html,
        body,
        #myChart {
          height: 100%;
          width: 100%;
        }
      </style>
    </head>
    
    <body>
      <div id='myChart'></div>
      <script>
        ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
        var myConfig = {
          "type": "mixed",
          "plot": {
            "tooltip": {
              "text": "%t"
            }
          },
          "series": [{
            "type": "bullet",
            "values": [34, 70, 40, 75, 33, 50, 65],
            "goals": [30, 75, 49, 69, 35, 59, 60],
            "text": "Bullet Chart"
          }, {
            "type": "scatter",
            "values": [
              [0.3, 5],
              [0.4, 11],
              [0.5, 9],
              [0.8, 7],
              [1, 12],
              [1.1, 3],
              [1.2, 6],
              [1.5, 19]
            ],
            "text": "Scatter Chart"
          }, {
            "type": "bubble",
            "values": [
              [3.4, 10, 5],
              [3.8, 9, 2],
              [4.2, 19, 6],
              [4.5, 8, 1],
              [4.8, 11, 3],
              [5.1, 15, 7],
              [5.6, 7, 2],
              [5.8, 11, 3]
            ],
            "text": "Bubble Chart"
          }, {
            "type": "stock",
            "values": [
              [91, 85, 99, 95],
              [95, 89, 97, 93],
              [93, 91, 96, 91],
              [91, 87, 98, 97],
              [97, 85, 97, 89],
              [89, 86, 97, 96],
              [96, 91, 99, 95]
            ],
            "aspect": "whisker",
            "text": "Stock Chart"
          }, {
            "type": "range",
            "values": [
              [40, 59],
              [34, 67],
              [31, 35],
              [34, 40],
              [19, 33],
              [30, 50],
              [15, 70]
            ],
            "aspect": "spline",
            "line-width": 1,
            "text": "Range Chart"
          }]
        };
    
        zingchart.render({
          id: 'myChart',
          data: myConfig,
          height: "100%",
          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'></div>
    </body>
    
    </html>
    html,
    body,
    #myChart {
      height: 100%;
      width: 100%;
    }
    var myConfig = {
      "type": "mixed",
      "plot": {
        "tooltip": {
          "text": "%t"
        }
      },
      "series": [{
        "type": "bullet",
        "values": [34, 70, 40, 75, 33, 50, 65],
        "goals": [30, 75, 49, 69, 35, 59, 60],
        "text": "Bullet Chart"
      }, {
        "type": "scatter",
        "values": [
          [0.3, 5],
          [0.4, 11],
          [0.5, 9],
          [0.8, 7],
          [1, 12],
          [1.1, 3],
          [1.2, 6],
          [1.5, 19]
        ],
        "text": "Scatter Chart"
      }, {
        "type": "bubble",
        "values": [
          [3.4, 10, 5],
          [3.8, 9, 2],
          [4.2, 19, 6],
          [4.5, 8, 1],
          [4.8, 11, 3],
          [5.1, 15, 7],
          [5.6, 7, 2],
          [5.8, 11, 3]
        ],
        "text": "Bubble Chart"
      }, {
        "type": "stock",
        "values": [
          [91, 85, 99, 95],
          [95, 89, 97, 93],
          [93, 91, 96, 91],
          [91, 87, 98, 97],
          [97, 85, 97, 89],
          [89, 86, 97, 96],
          [96, 91, 99, 95]
        ],
        "aspect": "whisker",
        "text": "Stock Chart"
      }, {
        "type": "range",
        "values": [
          [40, 59],
          [34, 67],
          [31, 35],
          [34, 40],
          [19, 33],
          [30, 50],
          [15, 70]
        ],
        "aspect": "spline",
        "line-width": 1,
        "text": "Range Chart"
      }]
    };
    
    zingchart.render({
      id: 'myChart',
      data: myConfig,
      height: "100%",
      width: "100%"
    });