Skip to content

Commit

Permalink
Documented the zero option for bars and lines.
Browse files Browse the repository at this point in the history
  • Loading branch information
dnschnur committed Jan 10, 2013
1 parent 790bbaf commit 1e685b0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,10 @@ series: {
fillColor: null or color/gradient
}

lines, bars: {
zero: boolean
}

points: {
radius: number
symbol: "circle" or function
Expand Down Expand Up @@ -737,6 +741,13 @@ y axis instead of the x axis; note that the bar end points are still
defined in the same way so you'll probably want to swap the
coordinates if you've been plotting vertical bars first.
Area and bar charts normally start from zero, regardless of the data's range.
This is because they convey information through size, and starting from a
different value would distort their meaning. In cases where the fill is purely
for decorative purposes, however, "zero" allows you to override this behavior.
It defaults to true for filled lines and bars; setting it to false tells the
series to use the same automatic scaling as an un-filled line.
For lines, "steps" specifies whether two adjacent data points are
connected with a straight (possibly diagonal) line or with first a
horizontal and then a vertical line. Note that this transforms the
Expand Down

0 comments on commit 1e685b0

Please sign in to comment.