JSF Chart Creator Component Based on JFreeChart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
honza
Posts: 3
Joined: Sat Apr 07, 2007 10:26 am

type: xyline

Post by honza » Mon Apr 09, 2007 8:39 am

I figered it out: The dataset must be of type XYDataSet (interface), e.g.: DefaultXYDataset.

honza
Posts: 3
Joined: Sat Apr 07, 2007 10:26 am

passing parameters

Post by honza » Mon Apr 09, 2007 8:43 am

I would like to ask how to pass a parameter to the JFreeChart?
I have this code:

Code: Select all

<c:chart datasource="#{Page2.dataset}" id="chart" type="xyline"/>
This component is in <h:dataTable> component. I would need to pass a parameter to the chart on every dataTable row.

I tried this, but it does not work:

Code: Select all

<c:chart datasource="#{Page2.dataset}" id="chart" type="xyline">
             <f:attribute name="longInput" value="300" />
         </c:chart>

pacomou
Posts: 4
Joined: Mon Apr 28, 2008 10:45 am

Post by pacomou » Mon Apr 28, 2008 10:49 am

hello,

Is it possible to insert dynamic chart in jsf page without using applets? for example using only jsf-comp.

thanks.

pacomou
Posts: 4
Joined: Mon Apr 28, 2008 10:45 am

Post by pacomou » Mon Apr 28, 2008 2:13 pm

Hello,

If someone can help me to configure chartcreator in order to use it with jsf.
I followed steps as described in the web site "installation and configuration" but something wrrong.
"http ://sourceforge.net/projects/jsf-comp" causes error when I start my web project with tomcat server.

Thanyou very much.

Schnatterinchen
Posts: 5
Joined: Fri Jul 25, 2008 9:23 am

creating own tooltips

Post by Schnatterinchen » Fri Jul 25, 2008 9:28 am

Hi!

i've implemented Chart Creator in my JSF-Site.
It works good.
I'm using Gantt as chart type.

But I have a big problem.

I want to create individual tooltips.
By now they're looking like: 01.01.2001 - 04.02.2001
But I want to use my own style and information.

Is it possible to create them?
Normally i can do this with:

Code: Select all

public String generateToolTip(CategoryDataset dataset, int series, int index) {
   return seriesNames[series];
}
It's very important.
Thank you for helping!

ajanitin
Posts: 7
Joined: Wed Dec 03, 2008 12:30 pm
Location: Pune, India

Problem with using Chart Creator in a JSF Portlet

Post by ajanitin » Wed Dec 03, 2008 12:44 pm

Hi,

I am facing a problem with the chart creator in a JSF portlet. When a JSF page containing the chartcreator chart is executed in browser the chart displays correctly. But when a portlet containing the JSF page is executed, i am getting following exception

I am using oracle weblogic portal with oracle workshop.

java.lang.NullPointerException
at net.sf.jsfcomp.chartcreator.utils.ChartUtils.createChartWithType(Unknown Source)
at net.sf.jsfcomp.chartcreator.Chartlet.doGet(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.bea.portal.tools.servlet.http.HttpContextFilter.doFilter(HttpContextFilter.java:60)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:336)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3502)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2186)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2092)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

leoyanez
Posts: 1
Joined: Fri Aug 13, 2010 7:49 pm
antibot: No, of course not.

Re: creating own tooltips

Post by leoyanez » Fri Aug 13, 2010 7:55 pm

Hi Schnatterinchen.

Can you post a little sample of how to implement a gantt chart, using chartCreator please?

thanks a lots,
regards,
Leo.
Schnatterinchen wrote:Hi!

i've implemented Chart Creator in my JSF-Site.
It works good.
I'm using Gantt as chart type.

But I have a big problem.

I want to create individual tooltips.
By now they're looking like: 01.01.2001 - 04.02.2001
But I want to use my own style and information.

Is it possible to create them?
Normally i can do this with:

Code: Select all

public String generateToolTip(CategoryDataset dataset, int series, int index) {
   return seriesNames[series];
}
It's very important.
Thank you for helping!

Locked