ismael12 / charts4j

Automatically exported from code.google.com/p/charts4j
Other
0 stars 0 forks source link

Problems with horizontal / vertical RangeMarker #20

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When I use .addHorizontalRangeMarker or .verticalRangeMarker (in general
RangeMarkers), the url generated is wrong... in particular with the tag
"chm". Because in toString():

1. How decimalFormatter.format() use DecimalFormat, and this uses local
settings by default  (for decimal separator), i think (well... it happened
to me) that is a problem. Because if your local separator is "," (like ES,
CH... ) the url it will be wrong.

2. I think for the url construction, code should us a strict symbols not
the locale. Something like this:

private static final class RangeMarker implements GoogleChartMarker {
...

DecimalFormatSymbols symbols = new DecimalFormatSymbols();
symbols.setDecimalSeparator('.');

/** The decimal formatter. */
private final DecimalFormat   decimalFormatter = new DecimalFormat("0.00",
symbols);

Well, I'm not sure but en my case it run.

Original issue reported on code.google.com by FoD.iKIIB@gmail.com on 9 Jan 2009 at 6:59

GoogleCodeExporter commented 8 years ago
Thanks for flagging this. On the to do list.

Original comment by Julien.C...@gmail.com on 9 Jan 2009 at 9:05

GoogleCodeExporter commented 8 years ago
Thank you FoD.iKIIB! I have known about this problem, but I had no idea what 
was the
cause. I also found other DecimalFormat problems. They should all now be fixed. 
If
possible, please check out from SVN and give it a try.

Original comment by Julien.C...@gmail.com on 10 Jan 2009 at 12:14

GoogleCodeExporter commented 8 years ago
No, thanks to you... your library it's excelent. 

Original comment by FoD.iKIIB@gmail.com on 14 Jan 2009 at 4:12