score:2
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.
Source: stackoverflow.com
Related Articles
- Change first tick label on yAxis
- Hide first yAxis label in Highcharts
- Highcharts- Unable to change yAxis label
- Dynamically change datetime format of xAxis Tick Label in highchart
- Why do my highcharts yaxis tick positions change the min and max of my chart?
- Change first tick position on xAxis
- Highchart - change color of one x-axis label only
- Highchart yAxis plotLines label position
- How to change axis label size when exporting in Highcharts / Highstock
- Highcharts axis label before first point
- How to set second yAxis scale according to data from first yAxis
- Highcharts missing first date label on xAxis
- How to change Highcharts xAxis label color individually?
- Show only first and last xAxis label in Highcharts
- Get x-axis label into the first colomn of the table - highcharts
- How to start and end a dynamically generetad datetime highchart's xAxis on the first and last tick
- How to set series-label to false by default and change the color of series label text in highchart
- Highcharts change label text for a single series
- highcharts change rendered image source on click
- Update color of plotline label on change highcharts
- Why is the first label on highcharts bar chart missing?
- HighCharts: How to display unique text for yAxis Label in a spline chart
- How to change space value between grid and yAxis in Highcharts line chart
- Change color code on colum, depending on data value (highchartJS)
- How do I dynamically change the yAxis min, max and tickInterval in HighCharts
- Highstock Change tick interval on range selector change
- Change xAxis and yAxis title of drilldown chart after entering into second series
- Highcharts - Show Year label in x-axis on change
- Highcharts: First X Point over the YAxis
- Highcharts label behind the second series (but above the first series)
- AngularJS and angular-translate: Using the translate filter in an object literal
- HighChart JavaSCript two spline updating in the same graphic
- How to set specific color for each data in pie chart using phplot.php
- Highcharts - Adding a point with addPoint stretches time
- How to use hide option for category data in highcharts
- HighCharts - destroy before writing a new chart (to prevent memory leak)
- Highcharts show max., min., and average for each serie in legend
- Force Highcharts to display tooltip outside of div/container
- remove grid line on chart
- Setting Highcharts maximum Y value to an exact amount without rounding
- HighChart pointPlacement on y-axis
- Highcharts data module and CSV: Displaying data points differently
- setting for line graphs for graph charts
- Show Highchart series horizontally below each other
- highcharts tooltip valueDecimals not working
- Highcharts custom x-axis categories aligned center (Under the pins)
- Cannot find /js/highcharts.js in GWT project
- Update in HighCharts in Yii
- Dependency-Wheel item without connection
- Highstock data input with csvURL only allows a limited number of rows