Highcharts displaying decimals on yearly xAxis -


HTML>

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?

"post-text" itemprop = "text">

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:

      < P> A 3 option is using a datetime x axis type, and setting the date as your x-axis values ​​and your tick for one year Ntrvol set.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -