so I tried the following code?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Post Reply
smoothcha027
Posts: 2
Joined: Sun Jul 08, 2018 5:50 pm
antibot: No, of course not.

so I tried the following code?

Post by smoothcha027 » Tue Jul 10, 2018 3:22 pm

Hello,
I need to underline the title of my charts, so I tried the following code :
Map m = new HashMap();
m.put(TextAttribute.SIZE, new Float(30));
m.put(TextAttribute.UNDERLINE, TextAttribute.UNDERLINE_ON);
Font font = new Font(m);
myGraph.setTitleFont(font);

but it doesn't seem to work. The font has the right size, but is not underlined... is there a solution for this ?

Thanks

Post Reply