Highcharts Demo
author(s):
Torstein Hønsi
HTML
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/modules/drilldown.js"></script>
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
JavaScript
$(function () {
// Create the chart
$('#container').highcharts({
chart: {
type: 'column'
},
title: {
text: 'Basic drilldown'
},
xAxis: {
categories: ['Documentos', 'Noticias']
},
legend: {
enabled: false
},
plotOptions: {
series: {
borderWidth: 0,
//stacking: 'normal',
dataLabels: {
enabled: false
}
}
},
series: [{
name: 'Acessos',
colorByPoint: true,
data: [{
name: 'Animals',
y: 5,
drilldown: 'teste'
}, {
name: 'Plants',
y: 3,
drilldown: 'test'
}]
}, {
name: 'Users',
colorByPoint: true,
data: [{
name: 'TETE',
y: 4
}]
}],
drilldown: {
series: [{
id: 'teste',
data: [
['Cats', 4],
['Dogs', 2],
['Cows', 1],
['Sheep', 2],
['Pigs', 1]
]
}]
}
});
});