subtitle « 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 » subtitle 

1. How do you place a footer (subtitle) below the legend?    jfree.org

The legend is also a chart subtitle. JFreeChart will draw the subtitles in order, from the outside of the chart working inwards (once the titles are drawn, whatever space is left is allocated to the plot). So you need to create a chart with no legend, add your subtitle first, then add the legend.

2. Copyright Subtitle Below Legend    jfree.org

I've added a Copyright subtitle to my chart and tried to position it in the lower right of the chart: TextTitle textTitle = new TextTitle("Copyright \u00A9 2008. Acme, Inc. "); textTitle.setFont(new Font("SansSerif", Font.PLAIN, 10)); textTitle.setPosition(RectangleEdge.BOTTOM); textTitle.setHorizontalAlignment(HorizontalAlignment.RIGHT); chart.addSubtitle(textTitle); The only problem is the copyright notice appears above the legend. Is there any way to get it to appear below the legend? Thx. ...

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.