Search found 15 matches

by javydreamercsw
Wed Feb 22, 2006 4:02 pm
Forum: JFreeChart
Topic: Error in applet on webpage but not as an executable .jar
Replies: 2
Views: 4171

The answer is yes and no. I did in my coding enviroment (NetBeans) but haven't in the packaged .jar. After updating the applet works wonders! Thanks a lot!
by javydreamercsw
Wed Feb 22, 2006 2:10 pm
Forum: JFreeChart
Topic: sun.dc.pr.PRException: endPath: bad path
Replies: 7
Views: 9047

Code that reflects the error might be helpful.
by javydreamercsw
Wed Feb 22, 2006 2:07 pm
Forum: JFreeChart
Topic: NoClassDefFoundError when ChartFactory.createXYLineChart
Replies: 8
Views: 11271

Sadly my jfreechart experience is limited to Windows enviroments. Anyway the JVM's should be equivalet in both systems (Linux & Windows) based on the portability of JAVA. But it might need some tweaks in linux.
by javydreamercsw
Wed Feb 22, 2006 1:31 pm
Forum: JFreeChart
Topic: NoClassDefFoundError when ChartFactory.createXYLineChart
Replies: 8
Views: 11271

The version you are using is not stable try upgrading first to version 1.0.1. From the error I can't do much to help. It might be servlet.jar missing?
by javydreamercsw
Wed Feb 22, 2006 1:08 pm
Forum: JFreeChart
Topic: Error in applet on webpage but not as an executable .jar
Replies: 2
Views: 4171

Error in applet on webpage but not as an executable .jar

I migrated to jfreechart 1.0.1 and the applets now have trouble displaying in jsp pages. Exception in thread "AWT-EventQueue-3" java.lang.NoSuchMethodError: org.jfree.text.TextBlock.setLineAlignment(Lorg/jfree/ui/HorizontalAlignment;)V at org.jfree.chart.title.TextTitle.arrangeRR(TextTitle.java:491)...
by javydreamercsw
Tue Oct 18, 2005 12:41 pm
Forum: JFreeChart
Topic: Problems with Updating XYLineChart
Replies: 9
Views: 12332

For events see Chapter 26 in the guide. Another way to update a series is public void setDataset(int index, CategoryDataset dataset); Assigns a dataset to the plot. The new dataset replaces any existing dataset at the specified index. It is permitted to set a dataset to null (in that case, no data w...
by javydreamercsw
Mon Oct 17, 2005 8:48 pm
Forum: JFreeChart
Topic: Problems with Updating XYLineChart
Replies: 9
Views: 12332

You have the developer's guide? There are events fired when certain things change, i.e. the data set. If you use those to your advantage you'll update each time the data changes. So you update when only when needed.
by javydreamercsw
Mon Oct 17, 2005 8:11 pm
Forum: JFreeChart
Topic: Need a sample code for making simple pie chart
Replies: 1
Views: 2456

http://www.javaworld.com/javaworld/jw-1 ... ofile.html

The developer's guide has more interesting examples, but this will do the trick.
by javydreamercsw
Mon Oct 17, 2005 8:05 pm
Forum: JFreeChart
Topic: Problems with Updating XYLineChart
Replies: 9
Views: 12332

What version of JFreeChart you have? It works for me. I'm in the latest version. My code is working.

About the refreshing period it depends on how you'll update the data. It doesn't make sense to update each sec for example. Use the events instead.

Give me more details to see if I can help.
by javydreamercsw
Mon Oct 17, 2005 4:03 pm
Forum: JFreeChart
Topic: Who know how to creat dynamic data chart ?
Replies: 1
Views: 2104

See jfreeChart documentation for more details.
by javydreamercsw
Mon Oct 17, 2005 3:54 pm
Forum: JFreeChart
Topic: Problems with Updating XYLineChart
Replies: 9
Views: 12332

Found it! Here's my answer: jButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { dataset.getSeries(0).getDataItem(3).setY(400); chartPanel.firePropertyChange("a",true,true); chartPanel.repaint(); chartPanel.zoomOutRange(1.1,1.1);...
by javydreamercsw
Mon Oct 17, 2005 3:25 pm
Forum: JFreeChart
Topic: Problems with Updating XYLineChart
Replies: 9
Views: 12332

For the refreshing problem add the following:

Code: Select all

chartPanel.repaint();
in the button action listener.

Still working on the axis resizing problem.
by javydreamercsw
Mon Oct 17, 2005 2:59 pm
Forum: JFreeChart
Topic: Create JThermometer & MeterPlot charts
Replies: 3
Views: 5139

Tried your solution but something's missing. I've never tried to build a graph from scratch, always used ChartFactory. Any help/idea?
by javydreamercsw
Fri Oct 07, 2005 7:26 pm
Forum: JFreeChart
Topic: Create JThermometer & MeterPlot charts
Replies: 3
Views: 5139

I'll try that out.

Isn't there a way to create a JThermometer chart with chart factory? Or maybe an example from both (JThermometer and Meter) will be great!
by javydreamercsw
Fri Oct 07, 2005 2:35 pm
Forum: JFreeChart
Topic: Create JThermometer & MeterPlot charts
Replies: 3
Views: 5139

Create JThermometer & MeterPlot charts

I'm trying to figure out hoe to create those since no ChartFactory method are availabel for them. I thought JThermometer was a Plot but it didn't work. I tried the following: JFreeChart chart = new JFreeChart(new JThermometer()); but didn't work. I think I can work with the javadocs about settings a...