[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
   Reporting
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Collapse]Charts Suite
   [Expand]Chart Control
   [Collapse]Chart3D Control
    [Expand]Getting Started
    [Expand]Series
     Legends
     Axes
     Titles
     Interactivity
  [Expand]Pivot Grid
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Printing-Exporting
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Gantt Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
 [Expand]Localization
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Legends

The Chart3D control can contain the unlimited number of legends. Each legend can display information about Series, their colorized point markers or surface fill styles.

This document explains how to solve the following tasks.

Expanded Add and Configure a Legend

To configure a newly added legend, use XAML like the following. Note that the legend title accompanies the legend.

The code above uses the following classes and properties.

Class or Property Description
ChartControlBase.Legends The collection of legends of the Chart3D control.
Legend An individual legend.
Legend.IndentFromDiagram Specifies the indent between the legend and the chart.
Legend.HorizontalPosition Specifies the horizontal position of the legend.
Legend.VerticalPosition Specifies the vertical position of the legend.
Legend.Title Specifies options of the legend title.
LegendTitle Legend title options.

The following image demonstrates the result of the code above.

Expanded Specify Legend Items Shown in a Legend

Each series can provide a legend item to a legend. In addition, colorizers and fill styles also add their legend items to a legend. The following images demonstrate the different available legend item types.

The following XAML demonstrates how legend items can be configured.

The XAML above uses the following types and properties.

Class or Property

Description

Series3DBase.ShowInLegend

FillStyleBase.ShowInLegend

Colorizer3DBase.ShowInLegend

Specifies whether a chart element should provide its legend items to a legend.

Series3DBase.Legend

FillStyleBase.Legend

Colorizer3DBase.Legend

Specifies the legend to which legend items of the chart element should be added.

Series3DBase.LegendTextPattern

FillStyleBase.LegendTextPattern

Colorizer3DBase.LegendTextPattern

Configures the text pattern specifying the text to be displayed within legend items.

Series3DBase.CheckableInLegend

Specifies whether the series check box should be shown on the attached legend. Note that, check boxes will be shown within a legend, if its Legend.MarkerMode property is set to CheckBox, MarkerAndCheckBoxor CheckBoxAndMarker.

Series3DBase.CheckedInLegend

Specifies whether the series check box is checked.

Is this topic helpful?​​​​​​​