Is there a way to not show the legend?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
clam61
Posts: 66
Joined: Tue Jul 03, 2007 9:59 pm

Is there a way to not show the legend?

Post by clam61 » Thu Jul 19, 2007 10:23 pm

? i searched the forums nad looked around at the API but i didnt see anything

lukkumar
Posts: 17
Joined: Thu Jun 07, 2007 8:10 pm

Post by lukkumar » Thu Jul 19, 2007 10:40 pm

How is that u are creating the charts... If u r using ChartFactory then you can specify whether to show legend or not in the constuctor of the methods in this class

Thanks,
Laks.

clam61
Posts: 66
Joined: Tue Jul 03, 2007 9:59 pm

Post by clam61 » Thu Jul 19, 2007 11:09 pm

i am not using chart factory

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 Jul 20, 2007 9:57 am

Code: Select all

chart.removeLegend();
David Gilbert
JFreeChart Project Leader

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

Locked