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
- Highcharts highlight area between two lines
- Unknown Property – yii\base\UnknownPropertyException Setting unknown property: dosamigos\highcharts\HighCharts::scripts
- add text under the bar with plotOptions highchart (BAR)
- Highcharts stacked bar chart Likert scale centering
- Align scatter plot to right side in highcharts
- Highcharts fill serie's color on svg marker
- Is it possible to create a multi level (stacked) donut chart with variable diameter on the last stack
- Disable Plotpoint legend on hover in Highcharts
- can we set the data labels out of the slice if it is not fit in +highchart?
- Could not make Highcharts display in pdf
- Plot php data into Highmap : HighCharts
- thousands Operator in highcharts
- Synchronized charts example with Highstock crashes with "Cannot read property 'category' of undefined"
- Export json data with highcharts
- HighCharts: show alla y axis on tooltip
- Make RangeSelector into dropdown Highcharts
- highstock linked to spreadsheet data doesn't work anymore
- Where can I find the API documentation for older versions of Highcharts?
- Highcharts tooltip is not working for large data
- In Column Highcharts, Custom Add text with specific offset
- Using highchart to get a series of a series in a column chart
- append point in the middle of graph
- Is there any way to define the indivdual dataLabels connector width in a pie chart
- Highchart X-Axis Label DateTime Issue
- Getting property 'exporting' undefined when exporting graph on second click
- How to make border for sparkline highcharts table?
- React highcharts, show legends as bar
- Highchart : Line Chart not Loading the data from Database on screen
- How to modify highcharts legend item click event?
- How to fetch json array data into highcharts in angularjs