OFChart Plugin

Error generating chart with very large numbers are used

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    Grails 1.0.4

Description

If I generate any type of chart with very large number the JSON is created incorrectly. I have tried to pass BigDecimal , BigDecimal.floatValue() and BigDecimal.intValue() in but I get the same error in the JSON. It looks like the engineering notation is causing the issue. Any ideas?

In this case the Y axis is getting set to max value 1.6859682E7

Open Flash Chart

JSON Parse Error [Bad Object]
Error at character 160, line 1:

0: {"is_thousand_separator_disabled":0,"is_decimal_separator_comma":0,"title":{"text":"Status Change Summary Chart"},"y_axis":{"min":0,"steps":5000,"max":1.6859681E7},"x_axis":{"labels":{"labels":["Feb-2009"]}},"num_decimals":2 ,"is_fixed_num_decimals_forced":0,"elements":[{"keys":[],"type":"bar_stack","values":[[{"val":"472120.94"},{"val":"62883.53"},{"val":"13053.61"},{"val":"92299.39"},{"val":"846248.38"},{"val":"457753.05"},{"val":"22059

Activity

There are no comments yet on this issue.

People

Vote (1)
Watch (0)

Dates

  • Created:
    Updated: