Highcharts Demo
author(s):
Torstein Hønsi
by AbhishekRohan
HTML
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/data.js"></script>
<script src="https://code.highcharts.com/modules/drilldown.js"></script>
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
JavaScript
// Create the chart
Highcharts.chart('container', {
chart: {
type: 'column'
},
title: {
text: 'Browser market shares. January, 2018'
},
subtitle: {
text: 'Click the columns to view versions. Source: <a href="http://statcounter.com" target="_blank">statcounter.com</a>'
},
xAxis: {
type: 'category'
},
yAxis: {
title: {
text: 'Total percent market share'
}
},
legend: {
enabled: false
},
plotOptions: {
series: {
borderWidth: 0,
dataLabels: {
enabled: true,
format: '{point.y:.1f}%'
}
}
},
tooltip: {
headerFormat: '<span style="font-size:11px">{series.name}</span><br>',
pointFormat: '<span style="color:{point.color}">{point.name}</span>: <b>{point.y:.2f}%</b> of total<br/>'
},
"series": [
{
"name": "SERVICES",
"data": [
{
"name": "18Q1",
"id": "SERVICES",
"y": 10992067,
"drilldown": true
},
{
"name": "18Q2",
"id": "SERVICES",
"y": 21160081,
"drilldown": true
},
{
"name": "18Q3",
"id": "SERVICES",
"y": 18691797,
"drilldown": true
},
{
"name": "18Q4",
"id": "SERVICES",
"y": 34377234,
"drilldown": true
},
{
"name": "19Q1",
"id": "SERVICES",
"y": 12170572,
"drilldown": true
},
{
"name": "19Q2",
"id": "SERVICES",
"y": 24060464,
"drilldown": true
},
{
"name": "19Q3",
"id": "SERVICES",
"y": 5855470,
"drilldown": true
}
]
},
{
"name": "SDDC",
"data": [
{
"name": "18Q1",
"id": "SDDC",
"y": 1316632090,
"drilldown": true
},
{
"name": "18Q2",
"id":...