summaryrefslogtreecommitdiff
path: root/API.txt
diff options
context:
space:
mode:
authorIgor Sfiligoi <isfiligoi@ucsd.edu>2009-05-10 21:49:12 -0400
committerIgor Sfiligoi <isfiligoi@ucsd.edu>2009-05-10 21:49:12 -0400
commitbf64e197b39d3f10b6145612802a6f169248cb45 (patch)
tree78f7f0a40d1c30e19755554218142a4c39e1f3c8 /API.txt
parent1fd4de1b25398954e9ab43e54d0d0fdf1b5cfce0 (diff)
flot-0.6pre@154
Diffstat (limited to 'API.txt')
-rw-r--r--API.txt11
1 files changed, 7 insertions, 4 deletions
diff --git a/API.txt b/API.txt
index 3b31050..75b3ade 100644
--- a/API.txt
+++ b/API.txt
@@ -232,10 +232,12 @@ an array for "ticks", either like this:
ticks: [0, 1.2, 2.4]
-Or like this (you can mix the two if you like):
+Or like this where the labels are also customized:
ticks: [[0, "zero"], [1.2, "one mark"], [2.4, "two marks"]]
+You can mix the two if you like.
+
For extra flexibility you can specify a function as the "ticks"
parameter. The function will be called with an object with the axis
min and max and should return a ticks array. Here's a simplistic tick
@@ -460,9 +462,10 @@ also hide the shadow.
"fill" is whether the shape should be filled. For lines, this produces
area graphs. You can use "fillColor" to specify the color of the fill.
If "fillColor" evaluates to false (default for everything except
-points), the fill color is auto-set to the color of the data series.
-You can adjust the opacity of the fill by setting fill to a number
-between 0 (fully transparent) and 1 (fully opaque).
+points which are filled with white), the fill color is auto-set to the
+color of the data series. You can adjust the opacity of the fill by
+setting fill to a number between 0 (fully transparent) and 1 (fully
+opaque).
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,