Anyone know how to define a length for the x-axis in flot bar charts with only 1 entry?
There are 'min' and 'max' options given in the Flot documentation, but they seem to require absolute values.
By default, the x-axis automatically stretches to fit the values of the entries. From the docs:
The options "min"/"max" are the precise minimum/maximum value on the
scale. If you don't specify either of them, a value will automatically
be chosen based on the minimum/maximum data values.
On graphs with one entry, the bar is stretching to the full extent of the x-axis, which looks decidedly wrong!