flot api covers both of these cases (in the "Axis Settings" section). For the x axis, you want to use the "time" parameter . For Y-axis label shortcuts, you want to specify the tick option (which text should appear in each place):
ticks: [[0, "zero"], [1.2, "one mark"], [2.4, "two marks"]]
source
share