Project

General

Profile

Actions

Bug #724

closed
CD KD

Shadow areas on CartesianChart with Chrome

Bug #724: Shadow areas on CartesianChart with Chrome

Added by Christophe Delépine over 15 years ago. Updated about 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Start date:
02/15/2011
Due date:
% Done:

0%

Estimated time:

Description

Hi,

I have just tried my Wt application using Chrome.
I can see shadow areas on the cartesian charts. Their shape changes when i edit the curve by adding new points
It works fine with Firefox.

Is that a known bug with Chrome ?

Regards
Christophe


Files

gui_chrome.jpg (280 KB) gui_chrome.jpg Christophe Delépine, 02/15/2011 04:53 PM
CurveEdit.cpp (7.78 KB) CurveEdit.cpp Christophe Delépine, 02/16/2011 02:12 PM
CurveEdit.h (1.36 KB) CurveEdit.h Christophe Delépine, 02/16/2011 02:12 PM

KD Updated by Koen Deforche over 15 years ago Actions #1

Hey Christophe,

No, that's new to me. Chrome always behaved well as far as my experience goes. Is the image rendered as an SVG or as canvas ?
And any idea what you are doing different than the charts example, which does not show this artefact for me ?

Regards,
koen

CD Updated by Christophe Delépine over 15 years ago Actions #2

Koen,

Here is the source code for my curve editor. The main setup is in the class constructor.
I don't have the feeling i do anything special
I have 2 series : one is drawn with green line segments + yellow markers. The second series is empty and only contains data when the user selects a marker.

Regards
Christophe

CD Updated by Christophe Delépine over 15 years ago Actions #3

The problem comes from the following line :

    s.setShadow(WShadow(3, 3, WColor(0, 0, 0, 127), 2));

If i remove this line, then the shadow areas disappear. Looks like the shadow is not well managed on Chrome

KD Updated by Koen Deforche about 15 years ago Actions #4

  • Status changed from New to Feedback
  • Assignee set to Koen Deforche

Hey Christophe,

I could reproduce this. Apparently it happens when SVG is used, and the bug is known and open in Chromium:

http://code.google.com/p/chromium/issues/detail?id=71773

I suggest that you use HTML5 Canvas for rendering the chart?

Regards,
koen

CD Updated by Christophe Delépine about 15 years ago Actions #5

Hi Koen,

You can close bug#724 since the problem is within Chrome.

FYI, i have tried setPreferredMethod(HtmlCanvas) for my chart but the bug still occurs. This is with the latest Chrome.
I have desactivated shadows for the moment.

Regards
Christophe

KD Updated by Koen Deforche about 15 years ago Actions #6

  • Status changed from Feedback to Closed
Actions

Also available in: PDF Atom