Bar chart start with min yaxis Highcharts
by Rikin Patel
HTML
<script src="http://code.highcharts.com/highcharts.js"></script>
<div id="container" style="height: 300px"></div>
<div id="container2" style="height: 300px"></div>
JavaScript
$(function() {
var chart = new Highcharts.Chart({
chart: {
renderTo: 'container',
type: 'bar'
},
title: {
text: null
},
legend: {
enabled: false
},
credits: {
enabled: false
},
xAxis: {
categories: ['Hispanic', 'White', 'Black', 'Asian', 'American'],
title: {
text: 'Race/Ethnicity'
},
//labels: { align: "left", autoRotation: [-90]}
},
yAxis: {
title: {
text: null,
useHTML: true
},
min: 3,
startOnTick: false,
},
//plotOptions: {
// series: {
// dataLabels: {
// enabled: true,
// align: 'right',
// color: '#FFFFFF'
// }
// }
//},
series: [{
data: [7.3,7.5,9.2,9.3,10.3]}]
});
});