Highcharts Demo
author(s): Torstein Hønsi
by lamarant
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: ' '
},
xAxis: {
type: 'category',
labels: {
rotation: -90
}
},
yAxis: {
title: {
text: ' '
}
},
legend: {
enabled: false
},
plotOptions: {
series: {
borderWidth: 0,
dataLabels: {
enabled: true
}
}
},
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": "Participants",
"colorByPoint": true,
"data": [
{
"name": "Al Jones",
"y": 184
},
{
"name": "Paul OLeary",
"y": 198
},
{
"name": "Janet Donovan",
"y": 145
},
{
"name": "Jane Doe",
"y": 206
},
{
"name": "John Doe",
"y": 112
},
{
"name": "Ima Technician",
"y": 166
},
{
"name": "William Davis",
"y": 218
}
]
}
]
});