legendtitle « Component « 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 » Component » legendtitle 

1. legendtitle    jfree.org

2. update LegendTitle    jfree.org

sorry my message is not very clear, so i specify it. i create a new XYseries: new XYSeries serie1 = new XYSeries("values"); serie1.setDescription("data1"); i add serie1 to my chart and the legend posts "data1" so it's ok. But in an other part of my code i wrote this: serie1.setDescription("data_update"); And the legend doesn't change, so why? Please help me.

3. problem with legendtitle and overlaid demo    jfree.org

In the demo program OverLaidBarChartDemo1, I tried to move the legend to the lower left. My code changes had no effect. Below are the changes I made to the code. ------------------------------------------------------ public static JFreeChart createChart() { // many lines of code remvoed plot.getDomainAxis().setCategoryLabelPositions(CategoryLabelPositions.UP_45); JFreeChart chart = new JFreeChart(plot); LegendTitle legend = new LegendTitle(plot); // code added legend.setPosition(RectangleEdge.BOTTOM); // code added legend.setVerticalAlignment(VerticalAlignment.CENTER); ...

4. LegendTitle shape    jfree.org

5. How to position a LegendTitle?    jfree.org

New to JFreecharts, but wasnt able to figure this out. I can add a legend to my chart, but only in the 4 locations specificed by RectangleEdge. These positions all are -outside- the chart area, and it results in a huge waste of space. How can I place the LegendTitle anywhere I want, even overlapping my chart? Is it even possible? ...

6. Re: New Approach to show LegendTitle    jfree.org

Nice approach. I just did try using it. THough not perfect it works fine. At the moment, just adding to Top and Bottom works fine. Left and Right doesn't look that good. I have one question. When we add LegendTitle with this new approach, I expect mouse click on it to return LegendItemEntity object. But it doesn't seem to. Regular Legend's ...

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.