Chart for WinRT > Chart Features > Chart Legend > Changing the Legend Position |
The LegendPosition Enumeration allows you to specify the position of your C1ChartLegend through the Position property.
You can set this property in XAML markup:
XAML Markup |
Copy Code
|
---|---|
<Chart:C1ChartName="c1Chart1"Height="326"Width="457"> <Chart:C1ChartLegendName="legend" Position="BottomLeft" /> </Chart:C1Chart> |
You can also set this property in code:
Code |
Copy Code
|
---|---|
legend.Position = LegendPosition.BottomLeft |