Hi Koen,
> > This behavior is consistent in that all series selected always
> > clip exactly right except for the very last series, which always
> > clips long. Any ideas?
>
> That seems like a real bug indeed. To narrow down whether this a
> bug in the charting library, the painter, or a specific rendering
> backend, do you have the same behavior using different renderers
> (for example using VML on IE and using Canvas/SVG on Firefox ?) ?
I apologize for not getting this test done earlier. This morning
was my first opportunity to get back to the code. To further
test the clipping problem, I extended the little test app I'd
written to learn how to deal with mouse events to include a
second series, and then I use the setRange() method on the X-axis
to manually set the range. In summary, I am not plotting two
series which are defined as
Y1 = 100 * sin(x)
and
Y2 = 100 * sin(2 * x)
When I actually fill out the model with this data, X steps from 0
to 719 in 1 degree increments, but I manually set the range on
the X-axis from 270 to 540 (using the setRange() method). I was
surprised to see that when I plotted the result, BOTH SERIES were
clipped at the edges of the WCartesianChart widget rather than
being constrained to the boundaries of the axes. You'll remember
from before that it appeared that only the last series plotted
had this clipping problem rather than all series.
I think the difference may come from the way that I was
populating the model. In my previous e-mail (where I first
brought up the problem and where only the last plotted series
seemed to extend beyond the bounds of the X-axis), I was filling
the data model using this pattern (you may remember this from an
earlier post)...
x-axis y1 y2
0 10
10 20
20 30
30 40
40 50
3 11
7 12
17 14
25 90
33 77
38 21
39 20
That method results in all series cropping correctly except for
the last one. For my most recent test, I was filling the data
model like so (not with these numbers of course, this is just to
illustrate the difference in the pattern). When done this way,
both series cropped to the edge of the widget and not the
confines of the X-axis.
X Y1 Y2
0 10 11
10 20 12
20 30 14
30 40 90
40 50 77
Following your advice, I've used Firefox 3.5.3 under Linux and IE
7.0 under Windows to see if there was a difference. In both
cases the behavior was identical.
If it helps, I'm happy to provide screenshots and source code, or
try any further tests you suggest!
Best regards,
Charlie Hubbard
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest