Jump to content

Charts : Embbed legends in.


neozerabbit

Recommended Posts

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

In XYPlots you can replace the legend by a XYTitleAnnotation.

Code:
...LegendTitle legend = chart.getLegend(); // only for XYPlots((XYPlot) chart.getPlot()).addAnnotation(new XYTitleAnnotation(x, y, legend, RectangleAnchor.CENTER));// remove the original legendchart.removeLegend();...
Link to comment
Share on other sites

  • 4 weeks later...

I am working on it but i do no manage in setting annotation where i want in the graphe. I can set y value of annotations but not x value. I use Bar chart ; Category Annotation.

 

I would like something like

 

|       Cat1       Cat2            

|       ----

|       |   |

|-------|--|------- |---|----------------------------------

                   |---|

 

  (with a 45 degres orientation angle)

I am thinkg about base item label generator

 



Post Edited by neozerabbit at 11/09/2011 09:59
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...