The items in the legend appear in the opposite order that the associated colour blocks appear in the actual chart, so I wanted to reverse the order of the items in the legend. http://stackoverflow.com/questions/15812217/how-to-reverse-legend-labels-in-flot-stacked-bar-chart Turns out the version of flot we're using (0.7) doesn't support that, but version 0.8 does by adding 'sorted:"reverse"' to the end of the attributes for the legend: just after the specification of the colors: . Tried installing v0.8 of the library and calling it from the chart.php page, but no chart appears, nor do any error statements. I don't have the time right now to figure this out just to get the legend items to appear in reverse order, but I'll look into it when I have some time on my hands.
This entry was posted by and is filed under Activity Log.