So basically, I have a test graph in JQuery-Flot, and instead of the normal integer axis. I need to use text label for the Y-axis and date label for the X-axis. Do anyone know how to do this?
The flot api covers both of these cases (under "Customizing the axes"). For the x-axis you'll want to use the "time" option. For the y-axis tick labels you'll want to specify the ticks option (what text should appear at each location):
ticks: [[0, "zero"], [1.2, "one mark"], [2.4, "two marks"]]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With