Search found 9 matches
- 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 ?
- 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... 

- 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 :
Are you sure there is object reference ?
Did you check if your dataset values change when you click on the arrows ?
Code: Select all
altitudeSeries.add(point.getDistancePoint(), point.getAltitudePoint());
slopeSeries.add(point.getDistancePoint(), point.getSlopePoint());
Did you check if your dataset values change when you click on the arrows ?
- 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
}
- Mon Aug 02, 2010 10:18 am
- Forum: JFreeChart
- Topic: Rounding values on Y axis and aligning zero.
- Replies: 3
- Views: 7605
- 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...
- 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...
- 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 !
For future reference, this is the exact code I used :

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();
- 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...