how to remove the legends using jfreechart-0.9.21 version

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
skkuchipudi
Posts: 23
Joined: Mon Sep 18, 2006 10:08 am
Location: Mumbai, India
Contact:

how to remove the legends using jfreechart-0.9.21 version

Post by skkuchipudi » Wed Oct 18, 2006 8:50 am

hi

I am using the following line to remove the legends using the jfreechart-1.0.2 version

Code: Select all

chart.removeLegend();
then it is working
suppose if i want to use the jfreechart-0.9.21 version, then which method i have to call?

regards,
Sumant

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 » Wed Oct 18, 2006 9:47 am

I don't remember exactly, but back then JFreeChart only allowed one legend, so you can probably do something like chart.setLegend(null).
David Gilbert
JFreeChart Project Leader

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

skkuchipudi
Posts: 23
Joined: Mon Sep 18, 2006 10:08 am
Location: Mumbai, India
Contact:

Post by skkuchipudi » Thu Oct 19, 2006 5:11 am

thanks Dave,

It is working ...! [img][/img]

Locked