mengding / jofc2

Automatically exported from code.google.com/p/jofc2
GNU Lesser General Public License v3.0
0 stars 0 forks source link

YAxis Range has problem because Double #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I found that there is a error on the openflashchart2.
"Open Flash Chart

JSON Parse Error [Bad Object]
Error at character 4564, line 133:

130:      },131:      "y_axis": {132:           "max": 2.6520212E7,
"
This error happens when I try to set a range on YAxis. After I check the
source code, I think it should be that the double.toString will cause
number format contains "E" and cause this problem. Is there any way to
avoid this?

Vincent

Original issue reported on code.google.com by shengta....@gmail.com on 1 Mar 2009 at 10:43

GoogleCodeExporter commented 9 years ago
Hi Vincent,

have you tried the SWF-File from http://www.ofc2dz.com/.
I remember an Error with parsing large numbers. The notation of the number is
correct, it means 2.6520212 * e power 7. (scirentific notation of numbers).

Could you alternatively post the complete JSON String here.

Thanks in advance

Greets Mike

Original comment by mhaufler@gmail.com on 2 Mar 2009 at 8:16

GoogleCodeExporter commented 9 years ago
Hi Mike,
    After using SWF-File from http://www.ofc2dz.com/, everything is fine. Thanks for
helping this issue. Many thanks.

Vincent

Original comment by shengta....@gmail.com on 2 Mar 2009 at 11:42

GoogleCodeExporter commented 9 years ago
No problem.

Original comment by mhaufler@gmail.com on 2 Mar 2009 at 12:09