To create a stacked chart you should set C1Chart.ChartType instead of DataSeries.ChartType like the following XAML example:
XAML Markup |
Copy Code
|
---|---|
<Chart:C1Chart x:Name="chart0" Height="650" Width="750" ChartType="Area" Palette="Solstice" Foreground="Black" > <Chart:C1Chart.Data> <Chart:ChartData > <Chart:ChartData.Children> <Chart:DataSeries Label="Series 1" Values="20 22 19 24 25" /> <Chart:DataSeries Label="Series 2" Values="8 12 10 12 15" /> </Chart:ChartData.Children> </Chart:ChartData> </Chart:C1Chart.Data> </Chart:C1Chart> |