score:1
Accepted answer
In Highcharts API we can read:
max: number, null
...
If the endOnTick option is true, the max value might be rounded up. (...)
As a solution disable startOnTick
and endOnTick
options or use tickPositioner
function to calculate and set tick postion manually, for example:
yAxis: {
...,
tickPositioner: function(){
var ticks = [],
step = (dataset.max - dataset.min) / 4;
for (var i = dataset.min; i <= dataset.max; i += step) {
ticks.push(i);
}
return ticks;
}
}
Live demo: https://jsfiddle.net/BlackLabel/ev5hz0pk/
API Reference:
Source: stackoverflow.com
Related Query
- How to set yAxis min/max in Highcharts synchronized chart with JSON
- How to set Highcharts chart maximum yAxis value
- Highcharts/highstock set yAxis Min and Max with Scroll
- highchart- how do I hide y-axis, when y-axis is set with max and min limits
- My Highcharts graph with multiple axis ignores the max value I set for the first yaxis
- Highcharts Angular - How to set chart width and height with percentages?
- HighCharts y-Axis set min max with input field on rendered graph axis
- Highcharts chart axis exceeding set min and max values
- min and max axis value not respected in HighCharts chart with a logarithmic axis
- Highcharts : how to set yAxis max value inside angularjs controller
- How to format Highcharts columnRange to get json data for temperature Min and Max
- how to set max min on highcharts dynamically
- Reload chart data via JSON with Highcharts
- Highcharts - how to have a chart with dynamic height?
- Highcharts : Chart with drilldown how to obtain click event of drill up button
- Highcharts Bar Chart - How to set the minimum bar width/length
- Highcharts 3.0, area chart with stacked and unstacked series - how to fix?
- How to format my json data for stack column chart in HighCharts
- Highcharts - how to set custom content in point tooltip (popup) on 3D scatter chart or how to customize point tooltip information?
- How to Build a Column Chart in Highcharts with Data Entered Dynamically Within a CMS
- How to set Highcharts object configuration globaly with vue-highcharts?
- How to change space value between grid and yAxis in Highcharts line chart
- How to use Highcharts React to create chart with multiple lines for same XAxis?
- Highcharts - how to export chart with different scale in one click
- How to generate highcharts chart from multiple local json files
- How do I force highcharts to pay attention to min and max on my secondary axis?
- Highcharts add point to line chart with json
- How set options from HIGHCHARTS in a chart using vue chartkick
- How do I dynamically change the yAxis min, max and tickInterval in HighCharts
- HighCharts - Set Max and Min values in zoom reset
More Query from same tag
- Modifing the "X" close button of highslide popups
- Highcharts drilldown chart: Display/Hide Plot Bands and Lines on drilldown or drillup
- Can someone help me to provide space between the time stamps on x-axis
- Add Source to Highcharts Export CSV
- high charts starting new line from each point
- How to get PlotBands data to show up on HighChart chart?
- High charts error #19
- Change data by download as pdf in Highcharts
- HighCharts: Uppercase for labels won't work on FireFox
- Highcharts Double Click To Select
- Highcharts.js question: is it possible to keep some part of chart in visible area always, even if "overscoll" option is set
- How to set border in column chart - Highchart
- Highcharts with 2 series and 2 compare dates
- Highstocks tooltip doesnt work when chart is small?
- Highcharts area chart hide graphs with one data point
- Uncaught ReferenceError: chart is not defined when using two charts
- Getting data from Postgres in JSON format in ROR into a Highcharts javascript
- Highcharts chart.events.redraw doesn't work for chart.xAxis[0].update
- How to auto adjust Y axis plot lines in live high chart
- Highcharts adding url to column chart
- JSON and Highcharts
- Highchart 3D Pie Chart Label color?
- Example to show/hide data with buttons/checkbox in Highcharts?
- Highcharts Treemap with multiple series: getting them all to show in legend
- Highcharts - Type Bar - single
- Stacked Column two values per column
- How to configure date format in Highcharts?
- SQL time stamp to millisecond
- How to dynamically populate Highcharts column chart with two series
- Hightcharts: Set series label in last point