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"]]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.