• 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 {
          height: 100%;
          width: 100%;
          margin: 0;
          padding: 0;
        }
    
        #myChart {
          height: 100%;
          width: 100%;
          min-height: 150px;
        }
    
        .zc-ref {
          display: none;
        }
      </style>
    </head>
    
    <body>
      <div id="myChart"><a class="zc-ref" href="https://www.zingchart.com">Powered by ZingChart</a></div>
      <script>
        ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
        var myConfig = {
          "type": "chord",
          "-background-color": "#ff0",
          "title": {
            "text-align": "left"
          },
          "options": {
            "style": {
              "chord": {
                "tooltip": {
                  "text-chord": "%text-destination receives from %text-source:%value-destination and sends to %text-source:%value-source",
                  "visible": true,
                  "font-size": 14
                },
                "alpha": 0.5,
                "hover-state": {
                  "alpha": 1
                },
                "border-width": 2
              },
              "item": {},
              "label": {
                "angle": 90,
                "font-size": 12,
                "bold": true,
                "-auto-align": true,
                "offset-r": 5
              },
              "tick": {
                "visible": false
              },
              "band": {
                "tooltip": {
                  "text": "%text",
                  "visible": true,
                  "font-size": 14
                }
              }
            },
            "palette": ["#29A2CC ", "#C81313 ", "#699518 ", "#DF7525 ", "#9943C1 ", "#95540E ", "#265E96 ", "#6B7075 ", "#96C245 ", "#B5A603 "],
            "angle-padding": 2,
            "group-padding": 110,
            "group-offset": 0,
            "band-space": 2,
            "band-width": 0.1,
            "color-type": "palette",
            "size-factor": 1.35
          },
          "plot": {
            "value-box": {
              "visible": true,
              "angle": 90,
              "text": "%node-value",
              "color": "#fff",
              "bold": true,
              "auto-align": true
            }
          },
          "series": [{
              "values": [10.0, 10.0, 10.0, 10.0, 10.0, 10.0],
              "text": "Afghanistan",
              "group": 1
            },
            {
              "values": [10.0, 10.0, 10.0, 10.0, 10.0, 10.0],
              "text": "Iraq",
              "group": 2
            },
            {
              "values": [25.0, 10.0, 10.0, 10.0, 10.0, 10.0],
              "text": "Argentina",
              "group": 2
            },
            {
              "values": [100.0, 50.0, 30.0, 10.0, 10.0, 10.0],
              "text": "Belgium",
              "group": 2
            },
            {
              "values": [60.0, 50.0, 50.0, 10.0, 10.0, 10.0],
              "text": "Austria",
              "group": 1
            },
            {
              "values": [70.0, 70.0, 25.0, 10.0, 10.0, 10.0],
              "text": "Germany",
              "group": 1
            }
          ]
        };
    
        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"><a class="zc-ref" href="https://www.zingchart.com">Powered by ZingChart</a></div>
    </body>
    
    </html>
    html,
    body {
      height: 100%;
      width: 100%;
      margin: 0;
      padding: 0;
    }
    
    #myChart {
      height: 100%;
      width: 100%;
      min-height: 150px;
    }
    
    .zc-ref {
      display: none;
    }
    var myConfig = {
      "type": "chord",
      "-background-color": "#ff0",
      "title": {
        "text-align": "left"
      },
      "options": {
        "style": {
          "chord": {
            "tooltip": {
              "text-chord": "%text-destination receives from %text-source:%value-destination and sends to %text-source:%value-source",
              "visible": true,
              "font-size": 14
            },
            "alpha": 0.5,
            "hover-state": {
              "alpha": 1
            },
            "border-width": 2
          },
          "item": {},
          "label": {
            "angle": 90,
            "font-size": 12,
            "bold": true,
            "-auto-align": true,
            "offset-r": 5
          },
          "tick": {
            "visible": false
          },
          "band": {
            "tooltip": {
              "text": "%text",
              "visible": true,
              "font-size": 14
            }
          }
        },
        "palette": ["#29A2CC ", "#C81313 ", "#699518 ", "#DF7525 ", "#9943C1 ", "#95540E ", "#265E96 ", "#6B7075 ", "#96C245 ", "#B5A603 "],
        "angle-padding": 2,
        "group-padding": 110,
        "group-offset": 0,
        "band-space": 2,
        "band-width": 0.1,
        "color-type": "palette",
        "size-factor": 1.35
      },
      "plot": {
        "value-box": {
          "visible": true,
          "angle": 90,
          "text": "%node-value",
          "color": "#fff",
          "bold": true,
          "auto-align": true
        }
      },
      "series": [{
          "values": [10.0, 10.0, 10.0, 10.0, 10.0, 10.0],
          "text": "Afghanistan",
          "group": 1
        },
        {
          "values": [10.0, 10.0, 10.0, 10.0, 10.0, 10.0],
          "text": "Iraq",
          "group": 2
        },
        {
          "values": [25.0, 10.0, 10.0, 10.0, 10.0, 10.0],
          "text": "Argentina",
          "group": 2
        },
        {
          "values": [100.0, 50.0, 30.0, 10.0, 10.0, 10.0],
          "text": "Belgium",
          "group": 2
        },
        {
          "values": [60.0, 50.0, 50.0, 10.0, 10.0, 10.0],
          "text": "Austria",
          "group": 1
        },
        {
          "values": [70.0, 70.0, 25.0, 10.0, 10.0, 10.0],
          "text": "Germany",
          "group": 1
        }
      ]
    };
    
    zingchart.render({
      id: 'myChart',
      data: myConfig,
      height: '100%',
      width: '100%'
    });