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 Query
- 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)
More Query from same tag
- On Click event on lat/long map point in highmaps
- How to display Html Entities in High Charts labels
- Change style for a specific tick in highcharts
- Ember component being overwritten instead of repeated
- How to remove margins in highmaps?
- Centering labels in pie. Highcharts
- No graph displayed using Highcharts
- Modify data through chart manipulation
- Highcharts steps to setup own server for download
- Standalone simple chart not working - highcharts
- Highchart tooltip issue
- How to show numbers in datalables donut highchart
- highstock. Can I add one line of tooltip when the point is in the area of plotbands?
- highcharts reset zoom button
- Highcharts: y-axis labels are missing
- What format does the highcharts js library accept for dates?
- How to add specific values to highchart
- Highcharts error #13
- HighCharts: Category values are repeated. Tooltip not showing the correct date
- R highcharts color specific column on chart
- event.ctrlKey works in IE and Chrome but not Firefox on legendItemClick
- Highchart tooltip with json data
- Highcharts: Format series names in tooltip
- OHLC tooltip getting duplicated to volume chart also in stock chart (highstock)?
- Highstock - Single line series-Dynamically create marker based on a trigger
- Loading JQuery dynamically but highcharts fails
- How to format data labels with Jquery Highcharttable column charts
- How to import exporting.js and export-data.js using angular2-highcharts and AOT compiler?
- Highcharts PHP JSON - correct data format
- dash_styles in Highcharts