overlap « LineChart « 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 » LineChart » overlap 

1. Linechart and label positions / overlapping    jfree.org

Hi everybody, I know, this has ben discussed before but unfortunately I have not found a solution to the the problem. When you plot a LineChart with lots of data, the x-axis labels will overlap. Now I've seen solutions in this forum, where people only want to display every other label, yet this does not work for me. I wonder whether ...

3. design issue: overlapping labels within linechart    jfree.org

malle wrote:but i think implementing this feature isn't that simple... You've discovered why I didn't implement something better the first time around! To be honest, I think if you get something that works well for a single series (and it probably just involves calculating the angle of the "elbow" where the data item is, and centering the anchor point for the ...

4. Overlapping Labels within Linechart    jfree.org

We could use: ItemLabelPosition positivePosition = new ItemLabelPosition( ItemLabelAnchor.OUTSIDE12, TextAnchor.CENTER_LEFT, TextAnchor.CENTER_LEFT, -Math.PI / 2 ); CategoryPlot plot = chart.getCategoryPlot(); CategoryItemRenderer renderer = plot.getRenderer(); renderer.setBasePositiveItemLabelPosition( positivePosition ); But this way, i cant set the label x,y, position.. this isnt enough.. Should we rewrite all the paint method? Must be another way to an so simple thing...

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.