Open GoogleCodeExporter opened 9 years ago
Hi, if you're interested in helping out, I think the proper way to fix this is
adjusting the bars with half the line width.
Original comment by olau%iol...@gtempaccount.com
on 4 Apr 2011 at 10:37
Original comment by dnsch...@gmail.com
on 8 May 2012 at 7:32
[deleted comment]
Hi,
It would seem ideal to modify barLeft and barRight where they are initialized
in drawBarSeries, but these use units of the x-axis. This makes it difficult to
adjust for pixel differences. The units must be converted to pixels at some
point however, so barring problems with fractional behavior, the fix should be
relatively straightforward. Conversion is done by the p2c method. I just need
to fully understand it.
The adjustments must take into account the linewidth set, as well as the bar
width. But since you can set the bar width anyway, what's the point? Should
flot really be scaling down all the other graphs for this reason?
One other possibility is to adjust only if the bar outline would touch the
outside grid. This would render the first bar a slightly lesser width than
others in the series, though, so this solution is unappealing.
You could also simply omit the offending border outline. It doesn't look too
bad.
Yet another way is to offset the axis itself and leave everything else alone.
This seems.. complex.
Overall, though, I don't know if dynamically adjusting the area of bar graphs
is a good idea. Will work on this next week.
Thanks,
Derrick
Original comment by drrc...@gmail.com
on 14 Jul 2012 at 10:51
Original issue reported on code.google.com by
gcph...@gmail.com
on 24 Mar 2011 at 11:37Attachments: