Legends Appearance
This document describes how the legend’s appearance can be customized at design time.
With XtraCharts, it is possible to completely customize the legend’s appearance in a large variety of ways:
- To show or hide items’ markers within the legend, use the Legend.MarkerVisible property.
- To define the size of the legend markers (in pixels), use the Legend.MarkerSize property.
- Specify the appropriate Legend.MarkerMode property value to use checkboxes instead of markers or both.
- To control the visibility of the legend itself, use the Legend.Visibility property.
The appearance of the legend text can be customized using the following set of properties: Legend.Font, Legend.Antialiasing and Legend.TextColor.
The Legend.BackColor, Legend.BackImage and Legend.FillStyle properties determine the legend’s background appearance.
You can also customize the legend’s borders and shadow appearance.
To access the legend border options, use the Legend.Border property. You can customize their appearance using the BorderBase.Color, BorderBase.Thickness and BorderBase.Visibility properties.
To access the legend shadow options, use the LegendPageTab.Shadow property. You can customize its appearance using the Shadow.Color, Shadow.Size and Shadow.Visible properties.