Commit 5081ba4a authored by olau@iola.dk's avatar olau@iola.dk

Clarify that barWidth might also be in unit of the y axis


git-svn-id: https://flot.googlecode.com/svn/trunk@164 1e0a6537-2640-0410-bfb7-f154510ff394
parent aedfdb3b
...@@ -473,16 +473,16 @@ setting fill to a number between 0 (fully transparent) and 1 (fully ...@@ -473,16 +473,16 @@ setting fill to a number between 0 (fully transparent) and 1 (fully
opaque). opaque).
For bars, fillColor can be a gradient, see the gradient documentation For bars, fillColor can be a gradient, see the gradient documentation
below. "barWidth" is the width of the bars in units of the x axis, below. "barWidth" is the width of the bars in units of the x axis (or
contrary to most other measures that are specified in pixels. For the y axis if "horizontal" is true), contrary to most other measures
instance, for time series the unit is milliseconds so 24 * 60 * 60 * that are specified in pixels. For instance, for time series the unit
1000 produces bars with the width of a day. "align" specifies whether is milliseconds so 24 * 60 * 60 * 1000 produces bars with the width of
a bar should be left-aligned (default) or centered on top of the value a day. "align" specifies whether a bar should be left-aligned
it represents. When "horizontal" is on, the bars are drawn (default) or centered on top of the value it represents. When
horizontally, i.e. from the y axis instead of the x axis; note that "horizontal" is on, the bars are drawn horizontally, i.e. from the y
the bar end points are still defined in the same way so you'll axis instead of the x axis; note that the bar end points are still
probably want to swap the coordinates if you've been plotting vertical defined in the same way so you'll probably want to swap the
bars first. coordinates if you've been plotting vertical bars first.
For lines, "steps" specifies whether two adjacent data points are For lines, "steps" specifies whether two adjacent data points are
connected with a straight (possibly diagonal) line or with first a connected with a straight (possibly diagonal) line or with first a
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment