score:2

Accepted answer

you can define your own yaxis.tickpositioner to define all positions where you wish a tick should be placed.

since in your case you don't want to override the entire behavior, but just place a tick at the min position, you can leverage the axis.getlineartickpositions(interval, min, max) method to get the array of default positions that would be otherwise generate, and then append your additional ticks to this array.

the code below has ticks added on both the min and max of the y-axis

yaxis: {
    showfirstlabel: true,
    showlastlabel: true,
    tickpositioner: function(min, max) {
        // specify an interval for ticks or use max and min to get the interval
        var interval = math.round((max - min) / 5);
        var datamin = this.datamin;
        var datamax = this.datamax;
        // push the min value at beginning of array
        var positions = [datamin];
        var defaultpositions = this.getlineartickpositions(interval, datamin, max);
        //push all other values that fall between min and max
        for (var i = 0; i < defaultpositions.length; i++) {
            if (defaultpositions[i] > datamin && defaultpositions[i] < datamax) {
                positions.push(defaultpositions[i]);
            }
        }
        // push the max value at the end of the array
        positions.push(datamax);
        return positions;
    }
}

show tick on min and max of y axis | highchart & highstock @ jsfiddle
demo of your chart @ jsfiddle

score:0

for me it seems everything is working fine. the minimum value of your reversed chart is 1, which is right on top of the y-axis. however if you want to show this value on the axis, have a look at this post for a description.


Related Query

More Query from same tag