Dependency wheel
by amrutaJgtp
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/sankey.js"></script>
<script src="https://code.highcharts.com/modules/dependency-wheel.src.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script src="https://code.highcharts.com/modules/export-data.js"></script>
<script src="https://code.highcharts.com/modules/accessibility.js"></script>
<figure class="highcharts-figure">
<div id="container"></div>
</figure>
CSS
.highcharts-figure, .highcharts-data-table table {
min-width: 320px;
max-width: 800px;
margin: 1em auto;
}
#container {
height: 500px;
}
.highcharts-data-table table {
font-family: Verdana, sans-serif;
border-collapse: collapse;
border: 1px solid #EBEBEB;
margin: 10px auto;
text-align: center;
width: 100%;
max-width: 500px;
}
.highcharts-data-table caption {
padding: 1em 0;
font-size: 1.2em;
color: #555;
}
.highcharts-data-table th {
font-weight: 600;
padding: 0.5em;
}
.highcharts-data-table td, .highcharts-data-table th, .highcharts-data-table caption {
padding: 0.5em;
}
.highcharts-data-table thead tr, .highcharts-data-table tr:nth-child(even) {
background: #f8f8f8;
}
.highcharts-data-table tr:hover {
background: #f1f7ff;
}
#csv {
display: none;
}
JavaScript
Highcharts.chart('container', {
"title": {
"text": "Dependency wheel"
},
"series": [{
"nodeWidth": 20,
"curveFactor": 0.33,
"linkOpacity": 0.5,
"nodePadding": 10,
"nodeTooltipBackgroundColor": "w#ffffff",
"linkTooltipBackgroundColor": "#ffffff",
"nodes": [{
"id": 1,
"name": "UTC+01:00",
"color": "rgba(0,41,170,1)"
},
{
"id": 2,
"name": "UTC-03:00",
"eQCategoryValue": "1",
"color": "rgba(65,146,217,1)"
},
{
"id": 3,
"name": "UTC+09:00",
"color": "rgba(242,174,48,1)"
},
{
"id": 4,
"name": "UTC-05:00",
"color": "rgba(242,92,5,1)"
},
{
"id": 6,
"name": "UTC+08:00",
"color": "rgba(0,187,196,1)"
},
{
"id": 7,
"name": "UTC",
"eQCategoryValue": "6",
"color": "rgba(165,0,39,1)"
},
{
"id": 8,
"name": "UTC+05:30",
"color": "rgba(16,153,136,1)"
},
{
"id": 9,
"name": "UTC+00:00",
"color": "rgba(119,4,31,1)"
},
{
"id": 12,
"name": "Algeria",
"color": "rgba(2,104,115,1)"
},
{
"id": 13,
"name": "Argentina",
"color": "rgba(242,139,5,1)"
},
{
"id": 14,
"name": "Australia",
"color": "rgba(8,84,193,1)"
},
{
"id": 16,
"name": "Brazil",
"color": "rgba(77,115,239,1)"
},
{
"id": 17,
"name": "China",
"color": "rgba(1,58,64,1)"
},
{
"id": 19,
"name": "India",
"color": "rgba(0,41,170,1)"
},
{
"id": 21,
"name": "USA",
"color": "rgba(242,174,48,1)"
},
{
"id": 22,
"name": "Canada",
"color": "rgba(242,92,5,1)"
}
],
"data": [{
"from": 1,
"to": 12,
...