• 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,
        #myChart {
          height: 100%;
          width: 100%;
        }
      </style>
    </head>
    
    <body>
      <div id='myChart'></div>
      <script>
        ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
        var myConfig10 = {
          "type": "bubble-pie",
          "legend": {
            "item": {
              "text": "%data-pie"
            },
            "align": "right",
            "vertical-align": "middle"
          },
          "plot": {
            "values": [
              [3, 3, 34],
              [5, 12, 101],
              [9, 7, 59],
              [11, 5, 15],
              [14, 14, 30]
            ],
            "data-bubble": ["Sam D.", "Oscar C.", "Lisa A.", "Selma J.", "Sumati F."],
            "marker": {
              "border-color": "gray",
              "border-width": 1,
              "line-style": "dotted"
            },
            "hover-marker": {
              "background-color": "blue",
              "border-color": "pink",
              "border-width": 2,
              "line-style": "dashed"
            },
            "tooltip": {
              "text": "And of those %node-size-value pies, %data-v (or %data-pv%) were %data-pie pies!",
              "font-color": "blue",
              "font-family": "Georgia, serif",
              "background-color": "white",
              "border-color": "pink",
              "border-width": 2,
              "line-style": "dashed"
            }
          },
          "scale-x": {
            "values": "0:16:4"
          },
          "scale-y": {
            "values": "0:16:4"
          },
          "series": [{
              "data-v": [15, 37, 7, 3, 14],
              "data-pie": "Apple",
              "marker": {
                "background-color": "#FF7CC2"
              },
              "value-box": {
                "text": "%data-bubble<br>baked %node-size-value pies!",
                "placement": "top",
                "font-color": "black",
                "font-weight": "normal",
                "font-style": "italic"
              }
            },
            {
              "data-v": [13, 34, 21, 7, 8],
              "data-pie": "Pumpkin",
              "marker": {
                "background-color": "#FFE000"
              }
            },
            {
              "data-v": [6, 30, 31, 5, 8],
              "data-pie": "Cherry",
              "marker": {
                "background-color": "#FF0087"
              }
            },
            {
              "data-v": [5, 29, null, 3, 13],
              "data-pie": "Chocolate",
              "marker": {
                "background-color": "#14B8CC"
              }
            },
            {
              "data-v": [3, 25, 19, 3, null],
              "data-pie": "Pecan",
              "marker": {
                "background-color": "#09A0B2"
              }
            }
          ]
        };
    
        zingchart.render({
          id: 'myChart',
          data: myConfig10,
          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 myConfig10 = {
      "type": "bubble-pie",
      "legend": {
        "item": {
          "text": "%data-pie"
        },
        "align": "right",
        "vertical-align": "middle"
      },
      "plot": {
        "values": [
          [3, 3, 34],
          [5, 12, 101],
          [9, 7, 59],
          [11, 5, 15],
          [14, 14, 30]
        ],
        "data-bubble": ["Sam D.", "Oscar C.", "Lisa A.", "Selma J.", "Sumati F."],
        "marker": {
          "border-color": "gray",
          "border-width": 1,
          "line-style": "dotted"
        },
        "hover-marker": {
          "background-color": "blue",
          "border-color": "pink",
          "border-width": 2,
          "line-style": "dashed"
        },
        "tooltip": {
          "text": "And of those %node-size-value pies, %data-v (or %data-pv%) were %data-pie pies!",
          "font-color": "blue",
          "font-family": "Georgia, serif",
          "background-color": "white",
          "border-color": "pink",
          "border-width": 2,
          "line-style": "dashed"
        }
      },
      "scale-x": {
        "values": "0:16:4"
      },
      "scale-y": {
        "values": "0:16:4"
      },
      "series": [{
          "data-v": [15, 37, 7, 3, 14],
          "data-pie": "Apple",
          "marker": {
            "background-color": "#FF7CC2"
          },
          "value-box": {
            "text": "%data-bubble<br>baked %node-size-value pies!",
            "placement": "top",
            "font-color": "black",
            "font-weight": "normal",
            "font-style": "italic"
          }
        },
        {
          "data-v": [13, 34, 21, 7, 8],
          "data-pie": "Pumpkin",
          "marker": {
            "background-color": "#FFE000"
          }
        },
        {
          "data-v": [6, 30, 31, 5, 8],
          "data-pie": "Cherry",
          "marker": {
            "background-color": "#FF0087"
          }
        },
        {
          "data-v": [5, 29, null, 3, 13],
          "data-pie": "Chocolate",
          "marker": {
            "background-color": "#14B8CC"
          }
        },
        {
          "data-v": [3, 25, 19, 3, null],
          "data-pie": "Pecan",
          "marker": {
            "background-color": "#09A0B2"
          }
        }
      ]
    };
    
    zingchart.render({
      id: 'myChart',
      data: myConfig10,
      height: "100%",
      width: "100%"
    });