JFreeChart Ugly Rounding Error?
Posted
by billynomates
on Stack Overflow
See other posts from Stack Overflow
or by billynomates
Published on 2010-03-28T15:53:42Z
Indexed on
2010/03/28
16:43 UTC
Read the original article
Hit count: 267
Using series.add(180, 1);
produces a perfectly valid chart like this (little red dot at the bottom with some PolarItemRenderer Mods!)
but using series.add(3000/(6000/360), 1);
produces this beast:
I assume it's because somewhere, 6000/360 = 16.6... is getting rounded? How can I stop this happening? Thanks :)
© Stack Overflow or respective owner