I'm using flot charts in my report page. The chart has x-axis which contains some labels like Quality of Service
, Quality of Performance
etc, but these labels are dynamic for every other customer. What I mean is labels can be Car
, Plane
, Truck
for some other customer, and the character difference between the texts in x-axis causes abrupt changes in the width of the bars. As far as I know, barWidth
property of flot bar chart depends on the x-axis, as the author of this answer says. In time mode, I somehow understand, but if I use text in x-axis, how is the barWidth determined?
EDIT: The code that's generated is here.
Same width value, which is 0.1, two different views in chart:
The one with longer x-axis texts
The one with shorter x-axis texts
And here it comes, the one that sucks the most: