Home > Article > Web Front-end > Highcharts sets the number of ticks on the axis_html/css_WEB-ITnose
Just set the number of scales displayed, do not write down the scales.
Thank you
Calculate the interval based on the maximum value and minimum value of the data.
Then set the min, max and tickInterval attributes of the x and y axes
Calculate the interval based on the maximum and minimum values of the data.
Then set the min, max and tickInterval attributes of the x and y axes
What if the data are all zero? Just a line of zero
Calculate the interval based on the maximum and minimum values of the data.
Then set the min, max and tickInterval attributes of the x and y axes
What if the data are all zero? Just a zero line
Set the default maximum value, minimum value and interval by yourself
Calculate the interval based on the maximum value and minimum value of the data.
Then set the min, max and tickInterval attributes of the x and y axes
What if the data are all zero? Just a line of zero
Set the default maximum value, minimum value and interval
categories: ['0', '50','100','150','200'] How Let it display three of them, with step 1
Calculate the interval based on the maximum value and minimum value of the data.
Then set the min, max and tickInterval attributes of the x and y axes
What if the data are all zero? Just a line of zero
Set the default maximum value, minimum value and interval
categories: ['0', '50','100','150','200'] How Let it display three of them, step is 1
showLastLabel
showFirstLabel
set to false
And here is the api document. If you have any questions, check it yourself
http:/ /www.highcharts.me/api/index.html