Search found 21 matches

by TheHaas
Wed Apr 14, 2004 10:06 pm
Forum: JFreeChart
Topic: PieChart Labels in a Servlet
Replies: 1
Views: 2438

PieChart Labels in a Servlet

I'm running 0.9.17. I have the following in my code: PiePlot plot = (PiePlot) piechart.getPlot(); plot.setLabelGenerator( new StandardPieItemLabelGenerator("{0} - {2}")); The above works fine when I render the chart in a ChartFrame, but if I do it in a servlet, I get an exception: javax.servlet.Serv...
by TheHaas
Wed Apr 14, 2004 8:24 pm
Forum: JFreeChart
Topic: Creating a ImageMap from An Image
Replies: 4
Views: 11463

Okay, after a day of working on it, I think I have something . . . When you do this: ChartRenderingInfo info = new ChartRenderingInfo(new StandardEntityCollection()); You create a blank ChartRenderingInfo object. When you do this: ChartUtilities.writeChartAsPNG(out,chart,600,400,info); The "info" ob...
by TheHaas
Wed Apr 14, 2004 7:49 pm
Forum: JFreeChart
Topic: JFreeChart on Linux (Pie3DPlot.PERCENT_LABELS)
Replies: 11
Views: 11101

Subhani,

Make sure you only have one JFreeChart jar in you classpath. Look in your ear's, war's, and in your lib directory under your server config. This type of thing has caused me all kinds of headaches.
by TheHaas
Tue Apr 13, 2004 7:50 pm
Forum: JFreeChart
Topic: Creating a ImageMap from An Image
Replies: 4
Views: 11463

Does the ChartRenderingInfo somehow get magically populated with some information when the chart gets rendered when you call the method writeChartAsPNG()? I've tried looking at the code, but was no use. The secret is using the ToolTipTagFragmentGenerator and UrlTagFragmentGenerator options in getIm...
by TheHaas
Tue Apr 13, 2004 5:45 pm
Forum: JFreeChart
Topic: Creating a ImageMap from An Image
Replies: 4
Views: 11463

Creating a ImageMap from An Image

I have a servlet that creates the chart image directly to the output stream. I want this to be an image map, so I need to render the HTML. I have the ToolTipGenerator and UrlGenerator set in the chart, but the only example I can find of making the image map consists of this: ChartRenderingInfo info ...
by TheHaas
Fri Apr 02, 2004 9:26 pm
Forum: JFreeChart
Topic: Handling output streams-Represent chart but NOT in an image
Replies: 10
Views: 12511

I've been trying to write the HTML out, but have had no luck. When I try, I get an exception when trying to do a ChartUtilities.getImageMap. Here is info from my JSP: <img src="/wpConsole/ChartServlet" usemap="#chart" border='0' align='center'> <%=ChartServlet.getImageMap(sConsoleCookie)%> Methods f...
by TheHaas
Thu Apr 01, 2004 11:02 pm
Forum: JFreeChart
Topic: Handling output streams-Represent chart but NOT in an image
Replies: 10
Views: 12511

I decided to do this a route since my clustering question was answered. hkollmann's code worked great! My only problem is that I want an image map. Presently, I have my img tag as: <img src="/wpConsole/ChartServlet" usemap="/wpConsole/ChartServlet" border='0' align='center'> It brings up the image, ...
by TheHaas
Thu Apr 01, 2004 4:01 am
Forum: JFreeChart
Topic: JFreeChart in JBoss Cluster
Replies: 3
Views: 5107

JFreeChart in JBoss Cluster

Has anyone had any luck with running a JFreeChart application under a clustered JBoss configuration? (i.e. running under "all" instead of "default" server) When I try it, I get a "Not-serializable" exception when the ServletUtilities tries to add ChartDeleter to the HTTPSession. It works fine when r...
by TheHaas
Mon Mar 22, 2004 8:30 pm
Forum: JFreeChart
Topic: Congrats!
Replies: 1
Views: 2671

Congrats!

In my lastest version of JDJ, I noted that JFreeChart was Second Runner up in the "Best Java Class" category. JFreeReport was also Third Runner up in the "Best Reporting Package" category. Both packages were the only open source packages that placed in their categories! Check it out here: http://www...
by TheHaas
Tue Feb 24, 2004 6:06 pm
Forum: JFreeChart
Topic: Displaying a chart inside a jsp page between HTML code ?
Replies: 11
Views: 41637

Code: Select all

<img src="<%=initPath%>?id=<%=j%>&index=<%=i%>" border=0>
In the above, what is i and j??
by TheHaas
Mon Feb 23, 2004 10:28 pm
Forum: JFreeChart
Topic: Rendering a Chart in a Servlet
Replies: 0
Views: 2166

Rendering a Chart in a Servlet

I'm not a J2EE expert, but I'm having problems getting a chart from a servlet. I'm trying to follow the sample war but I keep getting a NullPointerException when it's trying to write the image file. From my JSP page: com.workpoint.client.ClientContext context = com.workpoint.client.ClientContext.cre...
by TheHaas
Wed Feb 18, 2004 11:20 pm
Forum: JFreeChart
Topic: Getting NullPointer exception for saveChartAsPNG in JSP page
Replies: 0
Views: 2009

Getting NullPointer exception for saveChartAsPNG in JSP page

Here is the code part of my JSP: <% com.workpoint.client.ClientContext context = com.workpoint.client.ClientContext.createContext(); context.open(sDSN,sResourceID,sPassword); JFreeChart chart = ResourceReport.getChart(context,"20040117","20040217"); ChartRenderingInfo info = new ChartRenderingInfo(n...
by TheHaas
Thu Feb 12, 2004 10:26 pm
Forum: JFreeChart
Topic: Help: Clickable JFree chart for HTML
Replies: 2
Views: 3218

Yes it does -- through servlets. Grab and deplot the sample war:

http://homepage.ntlworld.com/richard_c_ ... freechart/
by TheHaas
Thu Feb 12, 2004 7:06 pm
Forum: JFreeChart
Topic: Domain Type labels on points
Replies: 3
Views: 4759

Customizing the renderer would be a wondeful idea . . . . but I decided not to look too deep renderer code.

Here is a method that works for me. I used an x-offset of 0.1. You may have to adjust this to your own need.

http://users.binary.net/thehaas/blogfil ... Notes.html
by TheHaas
Wed Feb 11, 2004 8:18 pm
Forum: JFreeChart
Topic: NullPointer exception on XYDataItem.getY()
Replies: 1
Views: 2520

NullPointer exception on XYDataItem.getY()

When I do a getY() on a XYDataItem, I get a NullPointException. When doing a trace via Eclipse, I see that the XYDataItem ("point" in the following code) has x equal to an double while y is null. And there are XYSeries in the dataset. Here is my code: XYSeries tempseries; double x,y; Double newval; ...