Search found 17 matches
- 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...
- 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....
- Fri Dec 02, 2005 5:06 pm
- Forum: JFreeChart
- Topic: Make charts appear in new broswer
- Replies: 3
- Views: 4707
- 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...
- Wed Nov 30, 2005 1:14 am
- Forum: JFreeChart
- Topic: Show on another browser
- Replies: 17
- Views: 26250
- Mon Nov 28, 2005 4:03 pm
- Forum: JFreeChart
- Topic: Show on another browser
- Replies: 17
- Views: 26250
- 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...
- Sat Nov 26, 2005 4:06 am
- Forum: JFreeChart
- Topic: Show on another browser
- Replies: 17
- Views: 26250
- 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...
- 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"
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+"'>");
- Fri Nov 25, 2005 9:39 am
- Forum: JFreeChart
- Topic: Show on another browser
- Replies: 17
- Views: 26250
- Thu Nov 24, 2005 1:52 pm
- Forum: JFreeChart
- Topic: Show on another browser
- Replies: 17
- Views: 26250
Sort of
but by changing the codes to
it still doesn't show my chart in a new browser

Code: Select all
response.setContentType("text/html");
- Wed Nov 23, 2005 8:45 am
- Forum: JFreeChart
- Topic: Show on another browser
- Replies: 17
- Views: 26250
- 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.
What changes do i need to do to those codes above?
Code: Select all
response.setContentType("image/jpeg");
ServletOutputStream objSos = response.getOutputStream();
ChartUtilities.writeChartAsJPEG(objSos, objCht, 600, 400);
- Mon Nov 21, 2005 10:04 am
- Forum: JFreeChart
- Topic: Show on another browser
- Replies: 17
- Views: 26250