• 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></style>
    </head>
    
    <body>
      <div id='myChart'></div>
      <script>
        ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
        var myConfig = {
          "type": "bar",
          "plot": {
            "background-color": "#333399",
            "tooltip": {
              "rules": [{
                  "rule": "%v < 75",
                  "text": "%v is<br>less than 75.",
                  "background-color": "#666699"
                },
                {
                  "rule": "%v >= 75",
                  "text": "%v is<br>in the red.",
                  "font-weight": "bold",
                  "background-color": "#ff9999"
                }
              ],
              "font-color": "black",
              "font-family": "Georgia",
              "font-size": 12,
              "alpha": 0.5,
              "border-color": "#333399",
              "border-width": 1,
              "padding": "20%",
              "border-radius": "9px"
            }
          },
          "scale-y": {
            "guide": {
              "visible": false
            },
            "markers": [{
                "type": "area",
                "range": [0, 75],
                "background-color": "#666699",
                "alpha": 0.3
              },
              {
                "type": "area",
                "range": [75, 100],
                "background-color": "#ff9999",
                "alpha": 0.3
              }
            ]
          },
          "series": [{
            "values": [
              35, 42, 67, 69, 25, 34, 67, 74, 30, 33,
              34, 59, 25, 15, 28, 55, 59, 13, 14, 15,
              20, 21, 56, 45, 34, 23, 76, 88, 99, 77,
              78, 87, 76, 77, 81, 78, 85, 87, 87, 89,
              77, 85, 76, 75, 76, 97, 87, 88, 86, 78, 96
            ]
          }]
        };
    
        zingchart.render({
          id: 'myChart',
          data: myConfig,
          height: 400,
          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>
    
          
    var myConfig = {
      "type": "bar",
      "plot": {
        "background-color": "#333399",
        "tooltip": {
          "rules": [{
              "rule": "%v < 75",
              "text": "%v is<br>less than 75.",
              "background-color": "#666699"
            },
            {
              "rule": "%v >= 75",
              "text": "%v is<br>in the red.",
              "font-weight": "bold",
              "background-color": "#ff9999"
            }
          ],
          "font-color": "black",
          "font-family": "Georgia",
          "font-size": 12,
          "alpha": 0.5,
          "border-color": "#333399",
          "border-width": 1,
          "padding": "20%",
          "border-radius": "9px"
        }
      },
      "scale-y": {
        "guide": {
          "visible": false
        },
        "markers": [{
            "type": "area",
            "range": [0, 75],
            "background-color": "#666699",
            "alpha": 0.3
          },
          {
            "type": "area",
            "range": [75, 100],
            "background-color": "#ff9999",
            "alpha": 0.3
          }
        ]
      },
      "series": [{
        "values": [
          35, 42, 67, 69, 25, 34, 67, 74, 30, 33,
          34, 59, 25, 15, 28, 55, 59, 13, 14, 15,
          20, 21, 56, 45, 34, 23, 76, 88, 99, 77,
          78, 87, 76, 77, 81, 78, 85, 87, 87, 89,
          77, 85, 76, 75, 76, 97, 87, 88, 86, 78, 96
        ]
      }]
    };
    
    zingchart.render({
      id: 'myChart',
      data: myConfig,
      height: 400,
      width: "100%"
    });