mengding / jofc2

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

If specifying any y-axis settings (range) an empty labels string is output causing the y-axis labels to be blank #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

Adding any settings for y-axis range causes a blank labels":{}" to be
output, stopping ofc from creating its own apropriate labels.

Im fixing this locally by doing this:

String chartOut = chart.toString().replaceAll("labels\":\\{\\},\"","");
out.print(chartOut);

to stop the empty string to be output but it would be awesome if this could
be fixed

Original issue reported on code.google.com by richard....@gmail.com on 11 Feb 2009 at 4:43

GoogleCodeExporter commented 9 years ago
We stepped on this kind of bug in another area (slices for pie-charts). We're
currently checkeing how to force the json generator to hop over the empty 
labels list
without outputting an empty json statement.

Original comment by andr...@haufler.info on 11 Feb 2009 at 5:34

GoogleCodeExporter commented 9 years ago
Labels are now lazily initialized (left null until one explicitely sets a 
label).
Therefore it is ignored by the json generator...

Could you please verify that the issue is resolved?

BTW, we use the "Alternative OFC version by DZ" (see Homepage). This version 
worked
fine when setting a yaxis and using our auto-range feature. (w/o setting labels
explicitely).

regards Andy

Original comment by andr...@haufler.info on 11 Feb 2009 at 5:55