Skip to content

Latest commit

 

History

History
86 lines (71 loc) · 3.76 KB

datachart-multiple-legends.adoc

File metadata and controls

86 lines (71 loc) · 3.76 KB

Adding Multiple Legends

By default, the {DataChartName}™ does not display a Legend for series added in chart plot area. If you want to show an individual Legend for each series, you need to add a number of Legend objects to the container of {DataChartName} control and then bind each Legend to corresponding Series object’s Legend property. In addition, you must set the Title property for each Series object otherwise its corresponding legend item will display a default series title.

The following example code demonstrates how to add individual Legend for each series defined in the {DataChartName} control.

The following image shows how the {DataChartName} control might look like with multiple legends.

xamDataChart Multiple Legends 01