remove title from chart? titleless chart?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
uls
Posts: 25
Joined: Fri Oct 17, 2003 10:46 am

remove title from chart? titleless chart?

Post by uls » Wed Nov 12, 2003 1:12 pm

hi,

how can i remove the title completely from a chart?

tia,
ulrich

Jeffh
Posts: 13
Joined: Thu Oct 09, 2003 9:47 am

Post by Jeffh » Wed Nov 12, 2003 2:04 pm

I simply send "" (empty string) as the chart title( the first parameter to Create<ChartTypeHere>Chart(...);)

null may also work, altho I haven't tried that in 0.9.13

edit: tested null and it seems to remove the title area completely, whereas "" will leave some space at the top where the title should be.

Jeff

uls
Posts: 25
Joined: Fri Oct 17, 2003 10:46 am

Post by uls » Fri Nov 14, 2003 10:23 am

thanks, will try it ... can't compile right now

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 » Fri Nov 14, 2003 10:35 am

null is better than "".
David Gilbert
JFreeChart Project Leader

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

Locked