Creating a Stacked Area Chart

To create stacked chart you should set ChartType instead of ChartType like the following code example:

      <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>


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.