Open GoogleCodeExporter opened 8 years ago
Hm, I may be wrong about the cause, I'm still trying to follow the code flow.
However here is a minimal testcase:
http://schwen.de/wikisource/bugs/flot/flotbug.html
the red and green line should be exactly on top of each other. The red line is
deviating up. This is wrong. Bot datasets contain a simple x^2 series, which
should appear linear in a log-log plot.
Original comment by dan...@schwen.de
on 28 Apr 2011 at 10:49
Ha! It is just the opposite, you are linearly interpolating the non-linear
original data, which in a log-log plot looks way worse than interpolating the
transformed data!
Original comment by dan...@schwen.de
on 28 Apr 2011 at 10:59
[deleted comment]
[deleted comment]
This patch removes the manual clipping in plotLine and replaces it with a
canvas clip path. This of course breaks excanvas for old Internet Explorer
versions.
The alternative is to convert the manual clipping to transformed coordinates.
Not too hard either. I may try that too.
Demo of the patch:
http://schwen.de/wikisource/bugs/flot/flotclip.html
Original comment by dan...@schwen.de
on 29 Apr 2011 at 1:36
Attachments:
Hi!
Okay, to sum up: the problem is that the clipping code is operating on the
non-transformed data.
I'm afraid breaking excanvas compatibility is a not an option for Flot at this
point.
There's another route I've been thinking about that I know other plot packages
are doing, which is using the edge of the canvas to clip. This requires adding
an extra canvas for the inside of the chart, but could potentially enable
clipping of even harder stuff, like text.
Original comment by olau%iol...@gtempaccount.com
on 9 May 2011 at 3:52
Original comment by dnsch...@gmail.com
on 4 Jun 2012 at 9:36
Original issue reported on code.google.com by
dan...@schwen.de
on 28 Apr 2011 at 10:10