• 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 {
                margin: 0;
                padding: 0;
                height: 100%;
                width: 100%;
            }
    
            .chart--container {
                height: 100%;
                width: 100%;
                min-height: 150px;
            }
    
            .zc-ref {
                display: none;
            }
    
            zing-grid[loading] {
                height: 480px;
            }
        </style>
    </head>
    
    <body>
        <div id="myChart" class="chart--container"><a class="zc-ref" href="https://www.zingchart.com/">Powered by ZingChart</a></div>
        <script>
            ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
            let chartData = [{
                    text: 'Dallas',
                    values: [2950, 5700, 4789, 2771],
                    style: {
                        band: {
                            alpha: 1,
                            backgroundColor: '#000'
                        },
                        label: {
                            bold: true,
                            fontFamily: 'arial',
                            fontSize: '14px'
                        }
                    }
                },
                {
                    text: 'Chicago',
                    values: [7737, 5205, 2202, 7006],
                    style: {
                        band: {
                            aplpha: 1,
                            backgroundColor: '#f26223'
                        },
                        label: {
                            bold: true,
                            fontFamily: 'arial',
                            fontSize: '14px'
                        }
                    }
                },
                {
                    text: 'Atlanta',
                    values: [5574, 9898, 1685, 2765],
                    style: {
                        band: {
                            alpha: 1,
                            backgroundColor: '#957244'
                        },
                        label: {
                            bold: true,
                            fontFamily: 'arial',
                            fontSize: '14px'
                        }
                    }
                },
                {
                    text: 'Denver',
                    values: [5309, 1602, 8395, 4111],
                    style: {
                        band: {
                            alpha: 1,
                            backgroundColor: '#ffdd89'
                        },
                        label: {
                            bold: true,
                            fontFamily: 'arial',
                            fontSize: '14px'
                        }
                    }
                }
            ]
    
            let chartConfig = {
                type: 'chord',
                backgroundColor: '#FFFFFF',
                title: {
                    text: 'Call Center Escalation Paths',
                    backgroundColor: 'none',
                    fontColor: '#333',
                    fontFamily: 'arial',
                    textAlign: 'left'
                },
                legend: {
                    backgroundColor: 'none',
                    borderColor: 'gray',
                    borderWidth: '2px',
                    shadow: false
                },
                options: {
                    anglePadding: 5,
                    bandSpace: 2,
                    colorType: 'palette',
                    palette: ['#000', '#f26223', '#957244', '#ffdd89'],
                    radius: 110
                },
                plotarea: {
                    margin: '25px 40px 15px 40px'
                },
                series: chartData
            };
    
            zingchart.render({
                id: 'myChart',
                data: chartConfig
            });
        </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" class="chart--container"><a class="zc-ref" href="https://www.zingchart.com/">Powered by ZingChart</a></div>
    	</body>
    </html>
    html, body {
      margin: 0;
      padding: 0;
      height: 100%;
      width: 100%;
    }
    
    .chart--container {
      height: 100%;
      width: 100%;
      min-height: 150px;
    }
    
    .zc-ref {
      display: none;
    }
    let chartData = [
      {
        text: 'Dallas',
        values: [2950, 5700, 4789, 2771],
        style: {
          band: {
            alpha: 1,
            backgroundColor: '#000'
          },
          label: {
            bold: true,
            fontFamily: 'arial',
            fontSize: '14px'
          }
        }
      },
      {
        text: 'Chicago',
        values: [7737, 5205, 2202, 7006],
        style: {
          band: {
            aplpha: 1,
            backgroundColor: '#f26223'
          },
          label: {
            bold: true,
            fontFamily: 'arial',
            fontSize: '14px'
          }
        }
      },
      {
        text: 'Atlanta',
        values: [5574, 9898, 1685, 2765],
        style: {
          band: {
            alpha: 1,
            backgroundColor: '#957244'
          },
          label: {
            bold: true,
            fontFamily: 'arial',
            fontSize: '14px'
          }
        }
      },
      {
        text: 'Denver',
        values: [5309, 1602, 8395, 4111],
        style: {
          band: {
            alpha: 1,
            backgroundColor: '#ffdd89'
          },
          label: {
            bold: true,
            fontFamily: 'arial',
            fontSize: '14px'
          }
        }
      }
    ]
    
    let chartConfig = {
      type: 'chord',
      backgroundColor: '#FFFFFF',
      title: {
        text: 'Call Center Escalation Paths',
        backgroundColor: 'none',
        fontColor: '#333',
        fontFamily: 'arial',
        textAlign: 'left'
      },
      legend: {
        backgroundColor: 'none',
        borderColor: 'gray',
        borderWidth: '2px',
        shadow: false
      },
      options: {
        anglePadding: 5,
        bandSpace: 2,
        colorType: 'palette',
        palette: ['#000', '#f26223', '#957244', '#ffdd89'],
        radius: 110
      },
      plotarea: {
        margin: '25px 40px 15px 40px'
      },
      series: chartData
    };
    
    zingchart.render({
      id: 'myChart',
      data: chartConfig
    });