This topic demonstrates usage of the built-in Legend for the XamFinancialChart.
The XamFinancialChart has a built-in FinancialLegend that once enabled, will appear for each series and overlay in the chart with its items horizontally aligned between the toolbar and the chart’s plot area. The legend is disabled by default.
In order to enable the legend, you can set the IsLegendVisible property of the XamFinancialChart to true.
The following is a screenshot showing the built-in FinancialLegend to the XamFinancialChart:
The following code can be used to enable the legend in the XamFinancialChart.
In XAML:
<ig:XamFinancialChart x:Name="chart" ItemsSource="{Binding SelectedStock}" IsLegendVisible="True"/>
In C#:
chart.IsLegendVisible = true;
In Visual Basic
chart.IsLegendVisible = True
The following topics provide additional information related to this topic: