I found a solution : I create a new legend each time I change something, but it's probably not the best solution.
Does someone know a better way to do that ?
Search found 9 matches
- Tue Jun 17, 2008 5:12 pm
- Forum: JFreeChart
- Topic: Edit LegendLabel
- Replies: 1
- Views: 2314
- Tue Jun 17, 2008 2:11 pm
- Forum: JFreeChart
- Topic: Edit LegendLabel
- Replies: 1
- Views: 2314
Edit LegendLabel
Hi,
I'm using XYPlot and I have a legend for my chart. I want to edit the legend label, for example I want to add text to the previous label.
Is it possible ?
Which method should I use ?
I'm using XYPlot and I have a legend for my chart. I want to edit the legend label, for example I want to add text to the previous label.
Is it possible ?
Which method should I use ?
- Mon Jun 16, 2008 5:36 pm
- Forum: JFreeChart
- Topic: RangeAxis after zooming.
- Replies: 0
- Views: 2052
RangeAxis after zooming.
Hello, I need to set annotations for XYPlot : for each serie, I want to set an annotation like in AnnotationDemo1, but I want to redraw those annotations when I zoom, to see them everytime. So I need to know the upper bound of range and domain axis when I zoom. Which method could I use ? Edit : You ...
- Wed Jun 11, 2008 4:56 pm
- Forum: JFreeChart
- Topic: Save Chart with small size.
- Replies: 2
- Views: 3899
Well, the problem is that with images like 600*600, the legend and the title are really big and the chart is to small so I tried this : final PdfTemplate tp = cb.createTemplate(widthChart, heightChart); final Graphics2D g2 = tp.createGraphics(widthChart, heightChart, mapper); if ((widthChart > 700) ...
- Wed Jun 11, 2008 4:47 pm
- Forum: JFreeChart
- Topic: Set Legend Stroke of Line Chart
- Replies: 2
- Views: 4020
Hi ! I don't know if my solution will help you, but I did something which could interest you : I created a kind of "StrokeGifCeator" : it returns a GIF with the stroke you want. public class StrokeGifCreator { private BufferedImage image; public Image createGif(final Stroke stroke) { return createGi...
- Tue Jun 10, 2008 9:56 am
- Forum: JFreeChart
- Topic: Save Chart with small size.
- Replies: 2
- Views: 3899
Save Chart with small size.
Hi, I want to create PDF with my chart. I use IText and I already did this for PDF with "normal" size ( higher than the size of my chart ) : I used JFreeChart.draw(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D area) and it works very well. I have a problem when the size of the Rectangle2D is sma...
- Fri Jun 06, 2008 3:51 pm
- Forum: JFreeChart
- Topic: JFreeChart print job size.
- Replies: 8
- Views: 13017
- Fri Jun 06, 2008 11:06 am
- Forum: JFreeChart
- Topic: A problem in setting Range
- Replies: 5
- Views: 7412
- Thu May 08, 2008 3:27 pm
- Forum: JFreeChart
- Topic: Dynamic clickable legend
- Replies: 2
- Views: 4085
Hi ! I reply because I wanted to do the same thing ( and I don't have the Developper's Guide ). So I try to use this function : ( extract from the javadoc jfreechart/api/javadoc/index.html ) public void setSeriesVisible(int series, java.lang.Boolean visible) This is a part of my code : XYItemRendere...