Customizing the Legend Blocks

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

Customizing the Legend Blocks

Post by Roger Studner » Tue Jul 16, 2002 3:57 pm

I was wondering if nayone had already made this feature. I am using the XYStepRenderer (a line graph) to display some information. I currently use a dark red & light red line (or dark/light with any colors) to represent two related items ont he graph (out of many). As well, I make the dark line dashed, and the light line solid. What I would like to see, is in the legend for the various items, is that the 'blocks' of color be either a solid rectangle, or possible a couple of small dashed rectangles(within the Legend), just so that there is yet another indicator as to which items are represented (not evryone has perfect color etc).

Alot of people around me seem to think this would be a great feature. I imagine it would not be that difficult.. I just didn't want to 'do it' if someone has gotten something similar to work already.

Thanks,
Roger Studner

Locked