item « Legend « JFreeChart Q&A

2. suppressing legend item

3. Possible to reorder legend items?

Re: Possible to reorder legend items? by Tue Oct 18, 2005 12:20 pm bpmericle wrote:I want to know if it is possible to reorder the legend items regaurdless of the order that I have added datasets to my plot. I do this: public class XYPlot extends Plot implements ValueAxisPlot, Zoomable, RendererChangeListener, Cloneable, PublicCloneable, Serializable { ................. /** The legend ...

4. Legend item separation

5. Legend Item

6. showing the legend item together with the item

hi everbody, I've made my own solution for this problem, but its not working fine, the is following Code: Select all final XYSeriesCollection serieCollect = new XYSeriesCollection(); final XYSeries[] serie = new XYSeries[5]; final XYTextAnnotation[] annotation = new XYTextAnnotation[serie.length]; ...

7. Longer legend items?

The lines provided in the legend items for XYPlot are extremely short. That's fine I guess if you're distinguishing by color, but if you're printing the chart in a publication, you need rather longer lines to distinguish between dashing etc. Also if you make thicker lines in the chart, the legend lines thicken but do not have sufficient distance from the ...

8. Duplicate items in legend.

I have used plot.setRangeAxis(), plot.setRenderer() and plot.setDataset() to overlay several graphs on the same chart. The problem is that the same items appear in the legend. Once for every call to setDataset(). I would like to display the legend but I would like to merge the items displayed in the legend. Is there a method of dealing with this? -kproctor

9. Multi Line Legend Item Problem

This patch sets the alignment to LEFT: Code: Select all Index: source/org/jfree/chart/block/ =================================================================== RCS file: /cvsroot/jfreechart/jfreechart/source/org/jfree/chart/block/,v retrieving revision diff -u -r1.8.2.4 --- source/org/jfree/chart/block/ 4 Aug 2006 11:47:23 -0000 +++ source/org/jfree/chart/block/ 4 Oct 2006 14:28:37 -0000 @@ -62,6 +62,7 @@ import org.jfree.text.TextBlock; import org.jfree.text.TextBlockAnchor; import org.jfree.text.TextUtilities; +import org.jfree.ui.HorizontalAlignment; import org.jfree.ui.Size2D; import org.jfree.util.ObjectUtilities; import ...

10. Equal legend items in CombinedRangeXYPlot (with running demo

Equal legend items in CombinedRangeXYPlot (with running demo by tomkieffer Thu Dec 13, 2007 9:29 am In my CombinedRangeXYPlot all legend items are equal (to the series name of the last series added). I created the very simple demo below to reproduce what I mean. Either I have a really stupid error in my code that I can't see or ...

11. Using a gif for a legend item?

12. Strange problem with the legend Items

Hello everyone, My data in the bar chart is displaying correctly but, everytime I open the chart the kind of display is different. e.g. if I have 5 items to display Item A 50 sec pink Item B 100 sec green Item C 10 sec red Item D 58 sec yellow Item E 82sec blue such that Firstly Item A is ...

13. Legend item for a range marker

15. A question about the Legend Items