Draw « Legend « JFreeChart Q&A

Home
JFreeChart Q&A
1.Axis
2.BarChart
3.Chart
4.Color
5.Component
6.Dataset
7.Development
8.GanttChart
9.Graph
10.Image
11.Interoperability
12.Label
13.Layout
14.Legend
15.LineChart
16.PieChart
17.Plot
18.Renderer
19.Series
20.ToolTip
21.XYLineChart
JFreeChart Q&A » Legend » Draw 

1. Drawing legend separate from Chart    jfree.org

I have a situation where I have two charts side by side. They use the same series so I want to only display one legend. I do not see a way in the current version of JFreeChart to do this. I really want a "CombinedSeriesCategoryPlot" but that's a much more aggresive request. Any suggestions? Joey

2. BoxAndWhiskers: where to add code to draw a legend?    jfree.org

I need to add a legend with a filled circle, a hollow ellipse, a horizontal line and the triangles for mean, median and outliers and a caption in the lower right corner of the chart. Where would add that in the code? I was thinking about overriding AbstractCategoryItemRenderer.drawOutline in the BoxAndWhiskersRenderer. Thanks Fred

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.