HC: jQuery
by Adam Nekola
HTML
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/modules/exporting.js"></script>
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
JavaScript
$(function () {
$('#container').highcharts({
chart: {
type: 'column'
},
title: {
text: 'Javascript and jQuery ability',
align: 'left'
},
subtitle: {
enabled: false
},
xAxis: {
categories: [
'0',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'9',
'10'
]
},
yAxis: {
min: 0,
title: {
text: '% of responders'
}
},
tooltip: {
},
plotOptions: {
column: {
borderWidth: 0
}
},
series: [{
data: [15, 20, 10, 10, 7, 8, 8, 4, 5, 2, 1]
}]
});
});