Search found 17 matches

by Souma
Sun Feb 05, 2006 12:15 pm
Forum: JFreeChart
Topic: Creating Chart and Threading
Replies: 1
Views: 3017

Creating Chart and Threading

My createChart class creates faster than processing queries (due to large database, query takes some time to return the processed result to createChart class) thus i get nullpointerexception most of the time... Any help on this? How do i implement threading in this case? Any sample on applying threa...
by Souma
Mon Dec 05, 2005 8:42 am
Forum: JFreeChart
Topic: Make charts appear in new broswer
Replies: 3
Views: 4707

Help~ no luck... i get error which i do not know what is wrong with it :cry: My BarChart servlet codes: package Servlet; import java.io.*; import java.net.*; import javax.servlet.*; import javax.servlet.http.*; import org.jfree.chart.ChartFactory; import org.jfree.chart.JFreeChart; import org.jfree....
by Souma
Fri Dec 02, 2005 5:06 pm
Forum: JFreeChart
Topic: Make charts appear in new broswer
Replies: 3
Views: 4707

cool 8) i'll try it out, if there's any doubts i'll post again
by Souma
Wed Nov 30, 2005 4:27 am
Forum: JFreeChart - Stockmarket
Topic: Make charts appear in new broswer
Replies: 1
Views: 9672

Make charts appear in new broswer

This is how my demo works, i have a button in my jsp page (AvailableChart.jsp). So when i click a button (Show me BarChart), it post to the BarChart servlet which is called ChartTest. Instead of displaying the chart on the same page on AvailableChart.jsp i want it to be shown on a new browser, a pop...
by Souma
Wed Nov 30, 2005 1:14 am
Forum: JFreeChart
Topic: Show on another browser
Replies: 17
Views: 26250

*bump.. :(
by Souma
Mon Nov 28, 2005 4:03 pm
Forum: JFreeChart
Topic: Show on another browser
Replies: 17
Views: 26250

*bump anyone help?
by Souma
Sat Nov 26, 2005 12:04 pm
Forum: JFreeChart
Topic: Line Chart
Replies: 1
Views: 3396

Here are the basic codes for a Line Chart to work :wink: Geez... I do hope any other people in these forum provide codes for newbie to learn/start from (espically my problem mentioned in my thread)... The demo applications provided in the package is not really "digestable" to newbie... It takes me q...
by Souma
Sat Nov 26, 2005 4:06 am
Forum: JFreeChart
Topic: Show on another browser
Replies: 17
Views: 26250

my jsp page is pie_page.jsp so i code it this way is it correct? String graphURL = request.getContextPath () + "/pie_page?filename="+ filename; Btw i made a button so that when i click on that button it runs the chart servlet <form action="ChartTest" method="post">  Pie Chart <input type="s...
by Souma
Fri Nov 25, 2005 11:04 am
Forum: JFreeChart
Topic: Problem using JFree under Resin
Replies: 3
Views: 3438

Try out these buddy :wink: import org.jfree.chart.ChartFactory; import org.jfree.chart.JFreeChart; import org.jfree.chart.plot.PlotOrientation; import org.jfree.data.category.CategoryDataset; import org.jfree.data.category.DefaultCategoryDataset; import org.jfree.chart.ChartUtilities; CategoryDatase...
by Souma
Fri Nov 25, 2005 9:45 am
Forum: JFreeChart
Topic: Chart Example That works
Replies: 3
Views: 7044

Erm... sorry if i made a mistake

there's no declaration or some sort for the "out"

Code: Select all

out.println("<IMG SRC='"+graphURL+"' width='500' height='300' border='0' usemap='#"+ filename+"'>");
by Souma
Fri Nov 25, 2005 9:39 am
Forum: JFreeChart
Topic: Show on another browser
Replies: 17
Views: 26250

can't you just show me the codes so i can learn from it?
by Souma
Thu Nov 24, 2005 1:52 pm
Forum: JFreeChart
Topic: Show on another browser
Replies: 17
Views: 26250

Sort of :wink: but by changing the codes to

Code: Select all

response.setContentType("text/html");
it still doesn't show my chart in a new browser
by Souma
Wed Nov 23, 2005 8:45 am
Forum: JFreeChart
Topic: Show on another browser
Replies: 17
Views: 26250

Yah... i don't get it either, show how to code it?
by Souma
Mon Nov 21, 2005 4:23 pm
Forum: JFreeChart
Topic: Show on another browser
Replies: 17
Views: 26250

Isn't that html tag? Can it be use on a servlet? Forgive me, i'm quite newbie.

Code: Select all

response.setContentType("image/jpeg"); 
ServletOutputStream objSos = response.getOutputStream(); 
ChartUtilities.writeChartAsJPEG(objSos, objCht, 600, 400);
What changes do i need to do to those codes above?
by Souma
Mon Nov 21, 2005 10:04 am
Forum: JFreeChart
Topic: Show on another browser
Replies: 17
Views: 26250

Erm.. sorry about not explaining it clearly. I simply means how can i code it in a way that when i press a button, it opens a new web browser and show the pie chart on it?