From 1e685b0446f6e6b3281c02230d70e810e7eb6a4c Mon Sep 17 00:00:00 2001 From: David Schnur Date: Thu, 10 Jan 2013 10:00:32 -0500 Subject: [PATCH] Documented the zero option for bars and lines. --- API.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/API.md b/API.md index 2215c2f..5335129 100644 --- a/API.md +++ b/API.md @@ -669,6 +669,10 @@ series: { fillColor: null or color/gradient } + lines, bars: { + zero: boolean + } + points: { radius: number symbol: "circle" or function @@ -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