Highcharts displaying decimals on yearly xAxis -
My xxis is appearing with decades of width depending on the screen, so if it is small (2012, 2013,2014 ...) But when I increase the width of the screen, it will be displayed (2012, 2012.1, 2012.2, 2012.3 ...) and based on decimal place width (2012, 2012.5, 2013 ...) will change.
I know that it has some effect on the tick pixel interferol, but I do not know which value to use, I tried:
xAxis: {Tick pixel interval: 100, / 10 and 1 and 1000 also tried a redundant crosshair: true}
What can I do, so the chart is only full year (2012, 2013) , 2014) does not display the size of the screen and any specific width that gives the chart?
Tick pixel intervals will provide a setting of how far ticking - this will not help in your situation, make sure That problem persists.
What you want is just TickInternval
, and set it to 1, because your year is in the pay scale of 1:
- < Li>
-
-
If you do not always have an increment of 1, then the second option is allowDecimals
property:
Reference:
datetime
x axis type, and setting the date as your x-axis values and your tick for one year Ntrvol set.