Overview
TheTChartLegend class controls all legend properties and appearance. Access it through Chart1.Legend.
Location: TeeProcs.pas
Key Properties
Position and Layout
Legend_CustomPos.pas
Visibility and Style
Legend_Series.pas, Legend_SeriesGroups.pas
Symbol Customization
Symbol Properties
Control the appearance of legend symbols:Legend_Symbol.pas:49
Symbol Border and Shadow
Legend_SymbolBorder.pas, Legend_SymbolsShadow.pas
Symbol Gradient
Legend_SymbolsGradient.pas
Interactive Features
Checkboxes
Enable interactive show/hide of series:Legend_CheckBox.pas:42
Legend Scrolling
Basic Scrolling
Legend_Scroll.pas, Legend_MaxRows.pas
Scrollbar Tool
Add an interactive scrollbar to the legend:Legend_Scrollbar.pas:47
Text Formatting
Font and Color
Legend_FontColor.pas
Text Style
Legend_TextStyle.pas
Custom Text
Add custom items to the legend:Legend_AddText.pas
Spacing and Layout
Spacing Properties
Legend_VertSpa.pas, Legend_TextSymbolGap.pas, Legend_Widths.pas
Multi-Column Layout
Advanced Features
Multiple Legends
Draw separate legends for different series:Legend_Multi.pas:32
Legend Title
Legend_Title.pas
Current Page Display
Show current page information:Legend_CurrentPage.pas
Custom Legend Items
Manually control legend item display:Legend_Items.pas
Common Use Cases
Minimal Legend (High Performance)
Series Groups
Organize related series:Legend_SeriesGroups.pas
Image in Legend
Display custom images:Legend_Image.pas
Position as Percentage
Position legend relative to chart size:Legend_PositionPercent.pas
Related Topics
Series Types
Different chart series types
Annotations
Add text and callouts to charts
