PiRSquared17 / jsflot

Automatically exported from code.google.com/p/jsflot
0 stars 1 forks source link

Set NumberFormat Locale in FlotChartRenderer to English for creating the data points #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The problem is that german decimal numbers are seperated by a ','. This
corrupt the JSON Data, e.g
ENGLISH LOCALE : X = 1 Y = 0.5 [1,0.5]
GERMAN LOCALE : X = 1 Y = 0.5 [1,0,5]

Original issue reported on code.google.com by stephans...@gmail.com on 18 Jun 2009 at 2:16

GoogleCodeExporter commented 9 years ago
Hello, 

I changed line 480 to:

NumberFormat nf = NumberFormat.getNumberInstance(Locale.US);

I am attaching a JAR file with the fix. Could you please check at your end if 
this works as expected ?

Original comment by boem...@gmail.com on 18 Jun 2009 at 9:24

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks, that works as expected

Original comment by stephans...@gmail.com on 19 Jun 2009 at 7:13

GoogleCodeExporter commented 9 years ago
I have re-uploaded the 0.2.45 JAR file. Changing status to Fixed. 

Original comment by boem...@gmail.com on 19 Jun 2009 at 10:22