Legend.NumRows and Legend.NumCols

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
JazzMan
Newbie
Newbie
Posts: 37
Joined: Fri Jun 18, 2004 4:00 am

Legend.NumRows and Legend.NumCols

Post by JazzMan » Sun Jun 29, 2008 3:17 am

Folks,

Under what conditions do the two properties effect Legend.NumRows and Legend.NumCols?

I've tried with Legend.CustomPosition set to True and False, and neither NumRows or NumCols seem to have any effect. Say the user has six legend items, and in one situation might want three rows of two columns, and in another situation, two rows, each row with three columns.

Thanks..:)

Regards,
richard diamond

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Tue Jul 01, 2008 7:42 am

Hi Richard,

CustomPosition (true/false) is used to draw the legend in the position indicated for Left and Top properties or in the predefined positions indicated in Alignment property (left, top, right, bottom). That shouldn't have any effect to the properties NumRows and NumCols.

Note that having, for example, one series and six values, the legend has NumRows = 1 and NumCols = 6 by default. And, if you set:

Code: Select all

Chart1.Legend.Alignment := laBottom; 
then, there we'll have NumCols = 6 and NumRows = 1.

So, while there isn't a method/property to customize the number of columns/rows you want to display, you still could customize it using more than one legend. And here, I recommend you to take a look at the "Multiple Legends" example (All features/Miscellaneous/Legend/Multiple Legends) example at TeeChart features demo available at TeeChart's program group.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply