customizing key symbols in legend

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
chris weiss

customizing key symbols in legend

Post by chris weiss » Fri Sep 06, 2002 9:48 pm

hi, is it possible to specify the symbol next to a key in the legend (rather than the default colored squares) or is this functionality that has yet to be implemented?

thanks,

--chris

Harald Faber

Re: customizing key symbols in legend

Post by Harald Faber » Mon Sep 09, 2002 8:20 am

Did you take a look at
http://www.object-refinery.com/phorum-3 ... 908&t=3908

Does this fit to your request?

chris weiss

Re: customizing key symbols in legend

Post by chris weiss » Mon Sep 09, 2002 2:42 pm

hi harald, thanks for the reponse. i took a look at the discussion thread, and it's not what i need. i've no problem with the text, it's the icons next to the text. curently, the default is rectangles with the color of the item (working in the XYPlot) that is being plotted. we have shapes appearing at each plotted point (StandardXYItemRenderer set to use SHAPES_AND_LINES), but have not found a way to get those shapes to appear next to their respective identifier in the legend. does this make sense?

thanks,

--chris

David Gilbert

Re: customizing key symbols in legend

Post by David Gilbert » Mon Sep 09, 2002 3:10 pm

Hi Chris,

An enhancement will be required to get shapes to display on the legend. I'm hopeful that someone else will do this before I have to ;-)

Regards,

DG

Locked