Commit 9a197401 authored by olau@iola.dk's avatar olau@iola.dk

Set the fill opacity instead of just scaling it

git-svn-id: https://flot.googlecode.com/svn/trunk@65 1e0a6537-2640-0410-bfb7-f154510ff394
parent f28eb70f
......@@ -1297,7 +1297,14 @@
function setFillStyle(obj, seriesColor) {
var fill = obj.fill;
if (fill) {
ctx.fillStyle = obj.fillColor ? obj.fillColor : parseColor(seriesColor).scale(null, null, null, typeof fill == "number" ? fill : 0.4).toString();
if (obj.fillColor)
ctx.fillStyle = obj.fillColor;
else {
var c = parseColor(seriesColor);
c.a = typeof fill == "number" ? fill : 0.4;
c.normalize();
ctx.fillStyle = c.toString();
}
}
}
......
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