• 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",
          "title": {
            "text": "Mixed Chart with Linear & Category Scales"
          },
          "scale-x": {
            "labels": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
          },
          "scale-y": {
            "values": "0:100:20",
            "format": "$%vK"
          },
          "series": [{
              "type": "bullet",
              "values": [59, 79, 40, 75, 33, 50, 65, 43, 55, 61, 80, 90],
              "goals": [60, 65, 34, 69, 15, 33, 45, 29, 55, 49, 51, 75],
              "goal": {
                "background-color": "#CD7F32",
                "border-color": "#CD7F32",
                "tooltip": {
                  "text": "Bronze Goal: %g",
                  "background-color": "#CD7F32",
                  "border-color": "#CD7F32"
                }
              },
              "tooltip": {
                "text": "Actual: %v"
              }
            },
            {
              "type": "scatter",
              "values": [65, 71, 45, 72, 29, 37, 49, 33, 60, 56, 60, 80],
              "marker": {
                "type": "rectangle",
                "height": "7%",
                "width": "27%",
                "background-color": "#c0c0c0",
                "border-color": "#c0c0c0"
              },
              "tooltip": {
                "text": "Silver Goal: %v"
              }
            },
            {
              "type": "scatter",
              "values": [69, 75, 50, 81, 35, 45, 56, 39, 70, 68, 75, 95],
              "marker": {
                "type": "rectangle",
                "height": "7%",
                "width": "27%",
                "background-color": "#FFD700",
                "border-color": "#FFD700"
              },
              "tooltip": {
                "text": "Gold Goal: %v"
              }
            }
          ]
        };
    
        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",
      "title": {
        "text": "Mixed Chart with Linear & Category Scales"
      },
      "scale-x": {
        "labels": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
      },
      "scale-y": {
        "values": "0:100:20",
        "format": "$%vK"
      },
      "series": [{
          "type": "bullet",
          "values": [59, 79, 40, 75, 33, 50, 65, 43, 55, 61, 80, 90],
          "goals": [60, 65, 34, 69, 15, 33, 45, 29, 55, 49, 51, 75],
          "goal": {
            "background-color": "#CD7F32",
            "border-color": "#CD7F32",
            "tooltip": {
              "text": "Bronze Goal: %g",
              "background-color": "#CD7F32",
              "border-color": "#CD7F32"
            }
          },
          "tooltip": {
            "text": "Actual: %v"
          }
        },
        {
          "type": "scatter",
          "values": [65, 71, 45, 72, 29, 37, 49, 33, 60, 56, 60, 80],
          "marker": {
            "type": "rectangle",
            "height": "7%",
            "width": "27%",
            "background-color": "#c0c0c0",
            "border-color": "#c0c0c0"
          },
          "tooltip": {
            "text": "Silver Goal: %v"
          }
        },
        {
          "type": "scatter",
          "values": [69, 75, 50, 81, 35, 45, 56, 39, 70, 68, 75, 95],
          "marker": {
            "type": "rectangle",
            "height": "7%",
            "width": "27%",
            "background-color": "#FFD700",
            "border-color": "#FFD700"
          },
          "tooltip": {
            "text": "Gold Goal: %v"
          }
        }
      ]
    };
    
    zingchart.render({
      id: 'myChart',
      data: myConfig,
      height: "100%",
      width: "100%"
    });