I’m working on a project and I need to use some charts.
For this project I’ve chosen to use Flot: http://code.google.com/p/flot/
The problem is, how can I change the x-axis values?
From a database I receive the data and parse it to the flot. No problem.
But sometimes I only receive 2 values from the database and the x-axis seems weird.
Instead of: 0, 0.5, 1, 1.5, 2, 2.5, …
I only want 0, 1, 2, 3, …
Some goes for the y-axis
Thanks
I believe the following will set your axis labels:
Search on the docs page for ‘Customizing the axes’.