<!doctype html>
<html class="zc-html">
<head>
<meta charset="utf-8">
<title>ZingSoft Demo</title>
<script nonce="undefined" src="https://cdn.zingchart.com/zingchart.min.js"></script>
<style>
.chart--container {
height: 100%;
width: 100%;
min-height: 530px;
}
.zc-ref {
display: none;
}
</style>
</head>
<body class="zc-body">
<div id="myChart" class="chart--container">
<a href="https://www.zingchart.com/" rel="noopener" class="zc-ref">Powered by ZingChart</a>
</div>
<script>
ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"]; // DEFINE DATA
// -----------------------------
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',
},
},
},
];
// CHART CONFIG
// -----------------------------
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,
};
// RENDER CHARTS
// -----------------------------
zingchart.render({
id: 'myChart',
data: chartConfig,
});
</script>
</body>
</html>
// DEFINE DATA
// -----------------------------
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',
},
},
},
];
// CHART CONFIG
// -----------------------------
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,
};
// RENDER CHARTS
// -----------------------------
zingchart.render({
id: 'myChart',
data: chartConfig,
});