Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to set Legend with Open Flash Chart 2 graphic using Open source Java API - JOFC?
    text
    copied!<p>I have a <a href="http://docs.jboss.org/seam/2.2.0.GA/en-US/html/" rel="nofollow">Seam 2.2</a> app running under JBoss5.1. In this application I have successfully developed some Graphics using <a href="http://code.google.com/p/jofc2/" rel="nofollow">Java Open Flash Chart</a>, which is a Java API for <a href="http://teethgrinder.co.uk/open-flash-chart-2/" rel="nofollow">Open Flash Chart.</a></p> <p>Now I would like to add a X and Y legend like <a href="http://teethgrinder.co.uk/open-flash-chart-2/x-legend.php" rel="nofollow">this one.</a></p> <p>Well I have a graphic which is rendering properly and than I try to set X Label using:</p> <p>... chart.setXLegend(new Text("Legenda X"));</p> <p>But than instead of showing the legend it corrupts something which causes the graphic to renders completely blank.</p> <p>This is the generated JSon when the graphics renders correctly.</p> <pre><code>{"y_axis":{"min":388,"max":866,"steps":20},"title":{"text":"Gráfico de gasto mensal com Combustível"},"bg_colour":"#FFFFFF","is_decimal_separator_comma":0,"elements":[{"values":[{"tip":"R$:610.0\n05/2010","top":610},{"tip":"R$:488.0\n06/2010","top":488},{"tip":"R$:634.57\n07/2010","top":634.57},{"tip":"R$:766.0\n08/2010","top":766},{"tip":"R$:396.0\n09/2010","top":396},{"tip":"R$:610.0\n10/2010","top":610}],"type":"bar"}],"num_decimals":2,"is_fixed_num_decimals_forced":0,"x_axis":{"labels":{"labels":["05/2010","06/2010","07/2010","08/2010","09/2010","10/2010"]}},"is_thousand_separator_disabled":0} </code></pre> <p>I took a deeply look at it and turns out that whenever I try to add the x legend with the code fragment showed above the JSon is actually NOT generated by JOFC. </p> <p>I could not find much useful documentation on JOFC on the web and the API itself is not very well documented, so I am completely lost on trying to add this simple x label, which should be the easiest part :( . Any Ideas on that. </p> <p>An update: </p> <p>Now I just have downloaded JOFC source code and will take a look at this.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload