Set point range for column chart
Description
The following code shows how to set point range for column chart.
Example
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script>
<script type='text/javascript'>
$(function () {<!--from w ww .j a v a 2 s . c o m-->
$('#container').highcharts({
chart: {
type: 'column'
},
xAxis: {
type: 'datetime',
tickInterval: 24 * 3600 * 1000
},
series: [{
data: [{
x: Date.UTC(2014, 0, 1),
y: 1
}, {
x: Date.UTC(2014, 0, 8),
y: 3
}, {
x: Date.UTC(2014, 0, 15),
y: 2
}, {
x: Date.UTC(2014, 0, 22),
y: 4
}],
pointRange: 24 * 3600 * 1000
}]
});
});
</script>
</head>
<body>
<script src="http://code.highcharts.com/highcharts.js"></script>
<script src="http://code.highcharts.com/highcharts-more.js"></script>
<div id="container" style="height: 400px"></div>
</body>
</html>