1. Linechart and label positions / overlapping jfree.orgHi 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 ... |
2. line chart CategoryAxis labels overlap jfree.org |
3. design issue: overlapping labels within linechart jfree.orgmalle 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.orgWe 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... |