slow display of chart on applet

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Julio Guzman

slow display of chart on applet

Post by Julio Guzman » Sat Mar 24, 2001 7:00 am

Hi,

I am displaying charts on an applet and have been doing my testing of the applet through Sun's appletviewer. I just recently uploaded to a server but it takes thirty seconds to create the chart. Does anyone have any tips on how to speed up the process. I am displaying with the following code:

DefaultXYDataSource myData = new DefaultXYDataSource(graphData.getremoteSites(), graphData.getData());
JFreeChart myChart = JFreeChart.createTimeSeriesChart(myData);
JFreeChartPanel myChartPanel = new JFreeChartPanel(myChart);
myChart.setTitle("Average Daily Profiles");
compChartPanel.removeAll();
compChartPanel.add(myChartPanel);

I would greatly appreciate your help.

Thanks in advance,
Julio

David Gilbert

RE: slow display of chart on applet

Post by David Gilbert » Mon Mar 26, 2001 1:18 pm

Hi Julio,

I'm not sure why it would take so long...is your dataset quite large? I know JFreeChart is not especially efficient for large data sets. But if you ran the applet on your local machine and it was quick enough, then I'm not sure why it would slow down when it is being downloaded from the server. Sorry...

DG.

Locked