IE line chart - colors with alpha channel

8 views
Skip to first unread message

Gabor Adam TOTH

unread,
May 8, 2009, 5:03:32 PM5/8/09
to plo...@googlegroups.com
hi,

in SweetCanvas.js _renderLineChart() there's a piece of IE-specific code
which prevents displaying colors correctly with alpha channel (alpha value is ignored),
Commenting out the following few lines seems to solve the problem:

// faux shadow for firefox
if (this.options.shouldFill) {
context.save();
//if (this.isIE) {
// context.fillStyle = "#cccccc";
//}
//else {
context.fillStyle = Color.blackColor().colorWithAlpha(0.2).toRGBString();
//}
context.translate(-1, -2);
bind(makePath, this)(context);
if (this.options.shouldFill) {
context.fill();
}
context.restore();
}

Is this still needed for some reason?
IE7 works fine without it, and displays the colors with alpha channel correctly.

Btw, the quickstart guide still has the htc code for ie, while excanvas.js is used now instead.
(There's even a newer version of that recently released: http://code.google.com/p/explorercanvas/downloads/list )

--
Regards,
Gabor Adam Toth


Reply all
Reply to author
Forward
0 new messages