• Edit
  • Download
  • <!DOCTYPE html>
    <html>
    
    <head>
      <meta charset="utf-8">
      <title>ZingSoft Demo</title>
    
      <script nonce="FOJSdbR3h4nmHIpOglFRjA==" 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 nonce="FOJSdbR3h4nmHIpOglFRjA==">
        ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
        var chartData = {
          "graphset": [{
              "id": "years",
              "x": "0%",
              "y": "0%",
              "width": "100%",
              "height": "50%",
              "type": "bar",
              "background-color": "#f4f6fc",
              "title": {
                "text": "Parent Child Drilldown"
              },
              "plotarea": {
                "margin": "40 10 30 50",
                "background-color": "#f4f6fc"
              },
              "scale-x": {
                "line-color": "#AFB2AF",
                "line-width": "2px",
                "values": "1990:2010",
                "max-items": 99,
                "tick": {
                  "line-color": "#AFB2AF",
                  "line-width": "1px"
                },
                "item": {
                  "font-color": "#59514E"
                },
                "guide": {
                  "visible": false
                }
              },
              "plot": {
                "bars-overlap": "100%",
                "rules": []
              },
              "scale-y": {
                "line-color": "#AFB2AF",
                "values": "0:150:25",
                "min-value": 0,
                "tick": {
                  "line-color": "#AFB2AF",
                  "line-width": "2px"
                },
                "item": {
                  "font-color": "#59514E",
                  "padding": "4px"
                },
                "guide": {
                  "visible": false
                }
              },
              "series": [{
                  "values": [81, 106, 110, 114, 133, 108, 101, 120, 116, 113, 123, 130, 132, 124, 128, 122, 115, 104, 123, 146, 113],
                  "background-color": "#fad000 #fa9e00",
                  "border-radius": "7px 7px 0px 0px",
                  "border-width": "2px",
                  "border-color": "#fff",
                  "url": "https://us-central1-zingchart-com.cloudfunctions.net/public_pie_datamonths?year=%scale-key-value",
                  "target": "graph=months",
                  "z-index": 1,
                  "tooltip": {
                    "shadow-color": "#fff"
                  }
                },
                {
                  "values": [150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150],
                  "background-color": "#E8E7E8",
                  "maxTrackers": 0,
                  "z-index": 0
                }
              ]
            },
            {
              "id": "months",
              "background-color": "#f4f6fc",
              "x": "0%",
              "y": "50%",
              "width": "100%",
              "height": "50%",
              "type": "null",
              "labels": [{
                "text": "Click on a year above to view monthly stats for that year",
                "width": 400,
                "height": 40,
                "margin": "auto auto",
                "border-width": 2,
                "border-radius": 10,
                "padding": 20,
                "background-color": "#fff"
              }]
            }
          ]
        };
    
        zingchart.render({
          id: "myChart",
          output: "svg",
          height: "100%",
          width: "100%",
          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='myChart'></div>
    </body>
    
    </html>
    html,
    body,
    #myChart {
      height: 100%;
      width: 100%;
    }
    var chartData = {
      "graphset": [{
          "id": "years",
          "x": "0%",
          "y": "0%",
          "width": "100%",
          "height": "50%",
          "type": "bar",
          "background-color": "#f4f6fc",
          "title": {
            "text": "Parent Child Drilldown"
          },
          "plotarea": {
            "margin": "40 10 30 50",
            "background-color": "#f4f6fc"
          },
          "scale-x": {
            "line-color": "#AFB2AF",
            "line-width": "2px",
            "values": "1990:2010",
            "max-items": 99,
            "tick": {
              "line-color": "#AFB2AF",
              "line-width": "1px"
            },
            "item": {
              "font-color": "#59514E"
            },
            "guide": {
              "visible": false
            }
          },
          "plot": {
            "bars-overlap": "100%",
            "rules": []
          },
          "scale-y": {
            "line-color": "#AFB2AF",
            "values": "0:150:25",
            "min-value": 0,
            "tick": {
              "line-color": "#AFB2AF",
              "line-width": "2px"
            },
            "item": {
              "font-color": "#59514E",
              "padding": "4px"
            },
            "guide": {
              "visible": false
            }
          },
          "series": [{
              "values": [81, 106, 110, 114, 133, 108, 101, 120, 116, 113, 123, 130, 132, 124, 128, 122, 115, 104, 123, 146, 113],
              "background-color": "#fad000 #fa9e00",
              "border-radius": "7px 7px 0px 0px",
              "border-width": "2px",
              "border-color": "#fff",
              "url": "https://us-central1-zingchart-com.cloudfunctions.net/public_pie_datamonths?year=%scale-key-value",
              "target": "graph=months",
              "z-index": 1,
              "tooltip": {
                "shadow-color": "#fff"
              }
            },
            {
              "values": [150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150],
              "background-color": "#E8E7E8",
              "maxTrackers": 0,
              "z-index": 0
            }
          ]
        },
        {
          "id": "months",
          "background-color": "#f4f6fc",
          "x": "0%",
          "y": "50%",
          "width": "100%",
          "height": "50%",
          "type": "null",
          "labels": [{
            "text": "Click on a year above to view monthly stats for that year",
            "width": 400,
            "height": 40,
            "margin": "auto auto",
            "border-width": 2,
            "border-radius": 10,
            "padding": 20,
            "background-color": "#fff"
          }]
        }
      ]
    };
    
    zingchart.render({
      id: "myChart",
      output: "svg",
      height: "100%",
      width: "100%",
      data: chartData
    });