ComponentOne Chart for WPF and Silverlight
Chart for WPF and Silverlight / Getting Started / XAML Quick Reference / Creating a Stacked Area Chart
In This Topic
    Creating a Stacked Area Chart
    In This Topic

    To create a stacked area chart you should set the C1Chart.ChartType property instead of the DataSeries.ChartType like the following XAML example:

    XAML
    Copy Code
    <c1:C1Chart ChartType="AreaStacked" >
            <c1:C1Chart.Data>
              <c1:ChartData ItemNames="P1 P2 P3 P4 P5">
                <c1:DataSeries Label="Series 1" Values="20 22 19 24 25" />
                <c1:DataSeries Label="Series 2" Values="8 12 10 12 15" />
              </c1:ChartData>
            </c1:C1Chart.Data>
            <c1:C1ChartLegend DockPanel.Dock="Right" />
          </c1:C1Chart>
    
    See Also