Hi,
As you saw the charts only support ints. I'm not sure if the underlying JS chart lib used supports
long though. You might want to use something like JQPlot which provides a much better chart
experience...
regards
Bob
On 2011/04/13 15:54 PM, Gilberto wrote:
Hi,
I'm getting ClassException in my code because all the click-charts[1] api only
accepts the Integer data type:
<quote>
java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer
at br.to.gov.secad.io.web.DashboardPage.onInit(DashboardPage.java:42)
at org.apache.click.ClickServlet.performOnInit(ClickServlet.java:674)
at
org.apache.click.ClickServlet.processPageEvents(ClickServlet.java:605)
at org.apache.click.ClickServlet.processPage(ClickServlet.java:561)
at org.apache.click.ClickServlet.handleRequest(ClickServlet.java:383)
</quote>
I'm using the 1.2.0-RC1 version together with click 2.3.0.
Is ti possible to add more methods like:
public void addPoint(String pointLabel, Long pointValue)
public void addPoint(String pointLabel, Double pointValue)
public void addPoint(String pointLabel, BigDecimal pointValue)
Other thing, before we had it(Charts api) in the click project and now I can't see
any indication that click supports graphs theclick.apache.org
<http://click.apache.org> portal and even in the docs.
Regards,
Gilberto
[1]http://code.google.com/p/click-charts