I have encountered an issue with Highcharts in my AngularJS application. Specifically, I am using Highcharts JS v7.2.1 (2019-10-31). When I set the y-axis type to "logarithmic," it causes the bars to render incorrectly in terms of proportion. If I don't use "logarithmic," the chart renders correctly but I also need to display very small values. Can anyone provide a solution for rendering the chart with correct proportions?
chart = new Highcharts.Chart({
chart: {
renderTo: 'container',
type: 'column'
},
title: {
text: 'Negative'
},
xAxis: {
categories: ['A','B','C','D','E','F','G','H'],
title: {
text: null
}
},
yAxis: {
type: 'logarithmic',
title: {
text: null,
}
},
legend: {
enabled: false
},
tooltip: {
formatter: function() {
return this.x + ':' + this.y + ' millions';
}
},
plotOptions: {
column: {
stacking: 'normal',
dataLabels: {
enabled: true,
style: {
textShadow: false,
'textOutline': '0px',
'stroke-width': 0,
fontSize: '14px'
}
}
},
series: {
pointPadding: 0,
groupPadding: 0.1,
borderWidth: 0,
shadow: false,
}
},
credits: {
enabled: false
},
series: [{
"name": "Current Pillar Value",
"data": [
15216429,
842869,
773956,
16833254
],
"type": "column",
"color": "#0fb2fc",
"showInLegend": false
},
{
"name": "Previous Pillar Value",
"data": [
null,
15216429,
16059298,
null
],
"type": "column",
"color": "#d3c9c9",
"dataLabels": {
"enabled": false
},
"showInLegend": false
}],
});
<script src="http://code.highcharts.com/highcharts.js"></script>
<div id="container" style="height: 300px"></div>