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
slow display of chart on applet
RE: slow display of chart on applet
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.
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.