Skip to content

Commit

Permalink
Add example of using gradients with bars
Browse files Browse the repository at this point in the history
git-svn-id: https://flot.googlecode.com/svn/trunk@216 1e0a6537-2640-0410-bfb7-f154510ff394
  • Loading branch information
olau@iola.dk committed Oct 22, 2009
1 parent d2e9909 commit 563349c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions API.txt
Expand Up @@ -716,10 +716,18 @@ For the series you can specify the gradient as an object that
specifies the scaling of the brightness and the opacity of the series
color, e.g.

{ colors: [{ opacity: 0.8 }, { brightness: 0.6, opacity: 0.8 } ]
{ colors: [{ opacity: 0.8 }, { brightness: 0.6, opacity: 0.8 } ] }

where the first color simply has its alpha scaled, whereas the second
is also darkened.
is also darkened. For instance, for bars the following makes the bars
gradually disappear, without outline:

bars: {
show: true,
lineWidth: 0,
fill: true,
fillColor: { colors: [ { opacity: 0.8 }, { opacity: 0.1 } ] }
}

Flot currently only supports vertical gradients drawn from top to
bottom because that's what works with IE.
Expand Down

0 comments on commit 563349c

Please sign in to comment.