Min And Max Axis Value Not Respected In Highcharts Chart With A Logarithmic Axis
I have the a stacked column chart with a logarithmic scaled y axis (JSFiddle here, adapted from a basic demo chart) $(function () { $('#container').highcharts({ chart:
Solution 1:
As in the question you found, use Sebastian's answer, with tickPositioner
. In fact, extremes are proper when setting startOnTick
and endOnTick
to false, just labels are not rendered. In that case use tickPositioner
, for example:
tickPositioner: function(min, max) {
var ticks = this.tickPositions;
ticks = $(ticks).filter(function(i, tick) {
return tick > min && tick < max;
});
ticks.slice(0, 0, min);
ticks.push(max);
return ticks;
}
And live demo: http://jsfiddle.net/99w72efv/5/
Post a Comment for "Min And Max Axis Value Not Respected In Highcharts Chart With A Logarithmic Axis"