Commit 563349c9 authored by olau@iola.dk's avatar olau@iola.dk

Add example of using gradients with bars


git-svn-id: https://flot.googlecode.com/svn/trunk@216 1e0a6537-2640-0410-bfb7-f154510ff394
parent d2e99096
......@@ -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.
......
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