Set min point length for column chart
Description
The following code shows how to set min point length 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 w w.j av a2s .c o m-->
$('#container').highcharts({
chart: {
type: 'column'
},
plotOptions: {
series: {
minPointLength: 3
}
},
series: [{
name: 'Tokyo',
data: [450, 70, 16],
pointPadding: 0
}, {
name: 'New York',
data: [83, 78, 98],
pointPadding: 0.1
}, {
name: 'London',
data: [48, 38, 39],
pointPadding: 0.2
}, {
name: 'Berlin',
data: [42, 33, 34],
pointPadding: 0.3
}]
});
});
</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>