Highcharts Demo
author(s): Torstein Hønsi
by Amit Sinha
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="width: 300px; height: 300px; margin: 0 auto"></div>
JavaScript
// Create the chart
Highcharts.chart('container', {
chart: {
type: 'column'
},
credits:{
enabled: false
},
title: {
text: 'Source(s)'
},
xAxis: {
type: 'category'
},
yAxis: {
title: {
text: 'Count'
}
},
legend: {
enabled: false
},
plotOptions: {
series: {
borderWidth: 0,
dataLabels: {
enabled: true,
format: '{point.y}'
}
}
},
tooltip: {
headerFormat: '<span style="font-size:11px">{series.name}</span><br>',
pointFormat: '<span style="color:{point.color}">{point.name}</span>: <b>{point.y}</b>'
},
"series": [
{
"name": "Scanner",
"colorByPoint": false,
"data": [
{
"name": "Nessus",
"y": 62,
"drilldown": null
},
{
"name": "Firefox",
"y": 10,
"drilldown": null
},
{
"name": "Internet Explorer",
"y": 7,
"drilldown": null
}
]
}
],
});