i have configure one high chart graph ,where im showing the data in the perentage show i want to set the y axis to 100. but its already set to 150. need to change 100 from the 150 y axis value. code
var chart = Highcharts.chart('container', {
title: {
text: 'Bins Status'
},
subtitle: {
text: 'Filled %'
},
xAxis: {
categories: ['Bin1', 'Bin2', 'Bin3', 'Bin4', 'Bin5', 'Bin6', 'Bin7', 'Bin8', 'Bin9', 'Bin10']
},
series: [{
type: 'column',
colorByPoint: false,
data: [22.3, 42.3, 96.4, 29.2, 44.0, 76.0, 35.6, 48.5, 16.4, 92.3],
showInLegend: false
}],
legend: {
enabled: false
},
plotOptions: {
series: {
borderWidth: 0,
dataLabels: {
enabled: true,
format: '{point.y:.1f}%'
}
}
},
}, function(chart) {
$.each(chart.series[0].data, function (i, data) {
if (data.y >= 70)
data.update({
color: 'yellow'
});
if (data.y >= 90)
data.update({
color: 'red'
});
})
});
jsfiddle link https://jsfiddle.net/fzumnvs5/