Chart for WinRT > Chart Features > Chart Legend > Orienting the Data in the ChartLegend |
To orient the data in the chart legend horizontally, add the following:
XAML Markup |
Copy Code
|
---|---|
<Chart:C1ChartName="c1Chart1"Height="326"Width="457"> <Chart:C1ChartLegendName="legend" Orientation="Horizontal" /> </Chart:C1Chart> |
You can also set this property in code:
C# |
Copy Code
|
---|---|
c1ChartLegend1.Orientation = Orientation.Horizontal |