Customizing a Legend

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
TestAlways
Advanced
Posts: 228
Joined: Tue Aug 28, 2007 12:00 am
Location: Oregon, USA

Customizing a Legend

Post by TestAlways » Tue Jul 31, 2012 3:07 pm

I have a legend that I need to customize. Below is how it initially appears:

Image

Several things I don't like about this: (1) I would like to remove the white border around the blue boxes, and (2) the shadows are larger than the images. I also would like to modify it so that I have two boxes for each value, e.g.:

Image

There is no shadow for these and no border either.

Is this possible?

Ed Dressel

TestAlways
Advanced
Posts: 228
Joined: Tue Aug 28, 2007 12:00 am
Location: Oregon, USA

Re: Customizing a Legend

Post by TestAlways » Wed Aug 01, 2012 12:19 am

I achieved this by setting the symbol with higher and accessing the TChart.Legend.Symbol.OnDraw event.

Post Reply