Override legend drawing query

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
linkhrsys
Newbie
Newbie
Posts: 7
Joined: Mon Feb 28, 2005 5:00 am

Override legend drawing query

Post by linkhrsys » Tue Mar 21, 2006 3:43 pm

Hi i am trying to create a legend like the following image, is there anyway i can override the legend drawing and replace it.

Image

I have 40 numeric ranges that i use for my gradient, and when i use the legend to display this, it does not look great.

Image

Is this possible without actually drawing directly to canvas? If i have to draw to the canvas, how do i resize the chart like the legend does?

Thanks.

Pep
Site Admin
Site Admin
Posts: 3299
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Fri Mar 31, 2006 9:01 am

Hi,
Hi i am trying to create a legend like the following image, is there anyway i can override the legend drawing and replace it.
Is this possible without actually drawing directly to canvas?
If you're source code customer you can customize the legend as your own, if you're not source code customer , I'm afraid the only way will be to draw on the Canvas.
If i have to draw to the canvas, how do i resize the chart like the legend does?
You can resize the Chart using the Chart.Width and Chart.Height properties.

Post Reply