Search found 9 matches

by pooo
Fri Aug 13, 2010 8:51 am
Forum: JFreeChart
Topic: JFreeChart on Windows 7?
Replies: 8
Views: 8172

Re: JFreeChart on Windows 7?

What java version are you using ?
by pooo
Fri Aug 13, 2010 8:48 am
Forum: JFreeChart
Topic: ajax
Replies: 1
Views: 4572

Re: ajax

Hm seems to me that this forum is not the right place for such a question... :wink:
by pooo
Fri Aug 06, 2010 1:50 pm
Forum: JFreeChart
Topic: Redrawing chart after dataset changed. How ?
Replies: 13
Views: 29125

Re: Redrawing chart after dataset changed. How ?

When you add values to your dataset, ie :

Code: Select all

altitudeSeries.add(point.getDistancePoint(), point.getAltitudePoint());
slopeSeries.add(point.getDistancePoint(), point.getSlopePoint());
Are you sure there is object reference ?
Did you check if your dataset values change when you click on the arrows ?
by pooo
Fri Aug 06, 2010 1:13 pm
Forum: JFreeChart
Topic: Zooming on mouse click
Replies: 1
Views: 4419

Re: Zooming on mouse click

I am not sure whether you want to zoom in or out, but this should help you :

Code: Select all

@Override
public void mousePressed(MouseEvent e) {
chartPanel.zoomOutBoth(e.getX(), e.getY());
//Or chartPanel.zoomInBoth(e.getX(), e.getY()); if you want to zoom in
}
by pooo
Fri Jul 16, 2010 2:53 pm
Forum: JFreeChart
Topic: How to make a chart appear in a GUI (not in external panel)
Replies: 4
Views: 8333

Re: How to make a chart appear in a GUI (not in external panel)

To make the chart appear beneath the buttons you need a LayoutManager. What I suggest you to do : Create 3 different panels : one for the buttons, the 2nd for the chart, and the other to wrap them. The third Panel needs to display its elements vertically, thats why you need to specify a LayoutManage...
by pooo
Fri Jul 16, 2010 2:26 pm
Forum: JFreeChart
Topic: Programatically save a chart as an image
Replies: 6
Views: 17109

Re: Programatically save a chart as an image

If you don't want to deal with ChartUtilities, I suggest you have a look at the ScreenImage class. I never used it myself, but it looks rather simple. http://tips4java.wordpress.com/2008/10/13/screen-image/ Basically, all you have to do is create a chart, add this chart to a ChartPanel, call the met...
by pooo
Thu Jul 15, 2010 8:10 am
Forum: JFreeChart
Topic: Get X and Y Labels from a JFreeChart
Replies: 2
Views: 5308

Re: Get X and Y Labels from a JFreeChart

Thank you ! Problem solved ! :D

For future reference, this is the exact code I used :

Code: Select all

JFreeChart chart = ChartFactory.createBarChart3D(...);

...

String xLabel = chart.getCategoryPlot().getDomainAxis().getLabel();
String yLabel = chart.getCategoryPlot().getRangeAxis().getLabel();
by pooo
Tue Jul 13, 2010 2:29 pm
Forum: JFreeChart
Topic: Get X and Y Labels from a JFreeChart
Replies: 2
Views: 5308

Get X and Y Labels from a JFreeChart

Hello, I was wondering if it would be possible to get the XLabel and YLabel from a JFreeChart object. I searched the Javadoc and saw that I can get the Title of the chart, or even the Legend items, but I can't figure how to get the axis labels. I know that these labels only exist in some types of ch...