Home  >  Article  >  Web Front-end  >  Highcharts sets the number of ticks on the axis_html/css_WEB-ITnose

Highcharts sets the number of ticks on the axis_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:07:461748browse

Just set the number of scales displayed, do not write down the scales.



Thank you


Reply to the discussion (solution)

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn