Question

Part I

I want to fix decimals of the x-axis and y-axis elements in the scatter-plot (highcharts). I've searched documentation in highcharts about properties of scatter-plot. But, I've found nothing. I want to set 2 decimals of elements in x-axis and y-axis because I have a very large number with 8 decimals o more.

Part II

Well, It works the decimals. However, the element of x-axis and y-axis have the same value now. Is it possible to fix this?. I would like the difference between each element of axis equals 0.1. I mean 34.66, 34.67, 34.68, 34.69

Part II -This is the new problem now

Part I - You can see the picture. This is the problem

Was it helpful?

Solution

Use a formatter function with .toFixed(2). Example jsFiddle.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top