Marker Label

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
maexchen
Posts: 15
Joined: Tue Nov 21, 2006 10:16 am

Marker Label

Post by maexchen » Thu Feb 22, 2007 1:25 pm

Hello!

I use :

Code: Select all

   Marker mark = new ValueMarker(timeevdo/fs);   
                    mark.setLabelAnchor(RectangleAnchor.TOP_RIGHT);
                    mark.setLabelFont(new Font("SanSerif", Font.PLAIN,24));
                    mark.setLabel(fr);
                    plot1.addDomainMarker(mark);
And the problem is, the label is not fully displayed. I use JFreechart 1.0.2

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Thu Feb 22, 2007 4:22 pm

The marker labels are just drawn at the anchor point you specify, and clipped to the plot bounds if they're too big to fit in the available space. That's not ideal, but it is the way it is...you'll need to modify the sources to get it to do something different.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked