Closed GoogleCodeExporter closed 8 years ago
I added the linear interpolation in XYLineRenderer (see attached file), which
fixes the problem. Before
checking it in, though, I had a couple of questions:
1) Clipping appears to work properly when the x value falls outside the layer
to the left (i.e. x is negative). By
simply removing the zero-bounding in the ux variable assignment, the rendering
worked properly in hosted
mode and in Safari. Is it the case that other targets won't necessarily handle
the negative x clipping properly?
2) I was under the impression that the BarChartXYRenderer was not working
properly or was in some state of
flux, so do we want to apply any changes to this class at this time?
I agree that solution #2 would be optimal, and also that it would represent a
much larger refactoring effort.
So my suggestion is to close this defect issue once it's wrapped up and open a
new issue for solution #2 with
Enhancement+Refactoring labels.
Original comment by chadtaka...@gmail.com
on 30 Jul 2008 at 3:49
Attachments:
You mean this line:
if (ux - lx >= 0) {
was causing it? if so, perhaps changing it to Math.abs(ux-lx) >= 0. Actually,
we can probably remove this line as
I think they fixed this bug in Safari canvas in Safari3.
Original comment by cromwell...@gmail.com
on 30 Jul 2008 at 4:41
[deleted comment]
Re: my question #1, I was referring to line 97 in the original code (r246):
double ux = Math.max(0, plot.domainToScreenX(dataX, seriesNum));
If I change it to this:
double ux = plot.domainToScreenX(dataX, seriesNum);
... then the clipping appears to work properly, just as it does when x values
fall outside the layer on the right-
hand side.
Original comment by chadtaka...@gmail.com
on 30 Jul 2008 at 6:09
Well gosh darn, I totally missed that line. I've been looking at this codebase
too much that my eyes tend to glaze
over. I don't remember why that max is there, I believe early on in the
development of Chronoscope, there were
crashes on Safari 2 and/or Firefox, and I may have stuck that in there to
prevent them.
I'd say let's remove it, and check if it works in Safari3, IE6, Firefox2/3, and
Opera, and if so, then commit that as
the fix. You can check if it works in IE/Flash by adding ?_force_flash to the
URL.
Original comment by cromwell...@gmail.com
on 30 Jul 2008 at 7:10
[deleted comment]
Resolved in r250. Tested in Safari3, Firefox2/3, Opera, and IE.
Original comment by chadtaka...@gmail.com
on 30 Jul 2008 at 9:36
Original issue reported on code.google.com by
cromwell...@gmail.com
on 29 Jul 2008 at 7:26