Hi... I´m working with Plot for a few days and was searching a way to rotate the labels for x or y axis. I see a lot o discussion about that, so i´m posting a easy way via CSS, using the classes created by flot.
/* rotate the x axis labels. */
.flot-x-axis .flot-tick-label {
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-ms-transform: rotate(45deg);
-o-transform: rotate(45deg);
}
Changing the class identifier as explained in Flot API rotate other axes:
To enable more granular control over styles, labels are divided between a set of text containers, with each holding the labels for one axis. These containers are given the classes 'flot-[x|y]-axis', and 'flot-[x|y]#-axis', where '#' is the number of the axis when there are multiple axes. For example, the x-axis labels for a simple plot with only a single x-axis might look like this: