Open GoogleCodeExporter opened 8 years ago
Forgot the mention the more bizarre part: As far as I can tell, this issue only
crops up if it is the -last- value of
the row that is 0. If the value for col1 or col2 was 0 and col3 was non-zero,
the bars would render as expected.
Original comment by hyn...@gmail.com
on 25 Apr 2010 at 4:56
Narrowed this down to a bug in explorercanvas and have filed a bug over there.
http://code.google.com/p/explorercanvas/issues/detail?id=74
If you guys don't want to wait for them to fix the issue, the visualize plugin
could be altered to never call
lineTo(x,y) if the x and y given are the current position.
Original comment by hyn...@gmail.com
on 25 Apr 2010 at 9:45
For bar graphs, that fix would be replacing lines 367–368:
ctx.moveTo(xVal, 0);
ctx.lineTo(xVal, Math.round(-points[i]*yScale));
with:
yVal = Math.round(-points[i]*yScale);
if (yVal != 0) {
ctx.moveTo(xVal, 0);
ctx.lineTo(xVal, yVal);
}
Original comment by hyn...@gmail.com
on 25 Apr 2010 at 10:10
If you got the values from a DB, you may also create a condition to do not
exhibit that value, but I'm sure that depends the type of chart you will use.
i.e: there's no reason do display 0 in a pie chart.
Original comment by alysson....@gmail.com
on 17 Nov 2010 at 1:17
This problem also showed up for me when the last value of a row is 1 as well.
The code in comment 3 fixes it, though the bar graph for that value of 1 does
not show up (or is extremely tiny).
Original comment by sbfis...@washoecounty.us
on 18 Jul 2011 at 9:46
I am also facing this problems please help me out to solve this issue in
details.
Original comment by rup.dewa...@gmail.com
on 24 Aug 2011 at 5:53
perfect solution. Thanks!!
Original comment by joseguti...@gmail.com
on 8 Nov 2011 at 4:30
Hi... I have the same problem with Pie... a solutione?
Original comment by david.te...@gmail.com
on 23 Apr 2012 at 12:25
Original issue reported on code.google.com by
hyn...@gmail.com
on 25 Apr 2010 at 4:55