ComponentOne CompositeChart for ASP.NET Web Forms
Composite Chart Elements / Series
In This Topic
    Series
    In This Topic

    The CompositeChartSeries object represents the data being plotted for the Composite chart. You can have one or more CompositeChartSeries on the C1CompositeChart. Each CompositeChartSeries is represented in a different color. The CompositeChartSeries can be added in design view through the CompositeChartSeries Collection Editor, in source view through the CompositeChartSeries element, or programatically through the CompositeChartSeries object.

    Adding a CompositeChartSeries in Design View:

    1. Select the C1CompositeChart control and click on its smart tag.
    2. In the C1CompositeChart tasks menu, select the SeriesList item and this will open the CompositeChartSeries Collection Editor dialog box.
    3. Click Add to add a CompositeChartSeries member to the SeriesList collection.

    Adding a CompositeChartSeries in Source View:

    Copy Code
    <SeriesList>
      <cc1:CompositeChartSeries Label="West" LegendEntry="true" Type="Column">
       <Data>
            <X StringValues="Desktops, Notebooks, AIO, Tablets, Phones" />
            <Y DoubleValues="5, 3, 4, 7, 2" />
       </Data>
      <cc1:CompositeChartSeries>
      <cc1:CompositeChartSeries Label="Central" LegendEntry="true" Type="Column">
       <Data>
          <X StringValues="Desktops, Notebooks, AIO, Tablets, Phones" />
          <Y DoubleValues="2, 2, 3, 2, 1" />
       </Data>
      <cc1:CompositeChartSeries>
      <cc1:CompositeChartSeries Label="East" LegendEntry="true" Type="Column">
        <Data>
          <X StringValues="Desktops, Notebooks, AIO, Tablets, Phones" />
          <Y DoubleValues="3, 4, 4, 2, 5" />
        </Data>
       <cc1:CompositeChartSeries>
      <cc1:CompositeChartSeries Label="abc" LegendEntry="true" Type="Pie" Center="150, 150" Radius="60">
    <PieSeriesList>
      <cc1:PieChartSeries Label="MacBook Pro" LegendEntry="true" Data="46.78" Offset="15">
      <cc1:PieChartSeries>
      <cc1:PieChartSeries Label="iMac" LegendEntry="true" Data="23.18" Offset="0">
      <cc1:PieChartSeries>
      <cc1:PieChartSeries Label="MacBook" LegendEntry="true" Data="20.25" Offset="0">
      <cc1:PieChartSeries>
    </PieSeriesList>
      <cc1:CompositeChartSeries>
     <cc1:CompositeChartSeries Label="US" LegendEntry="true" Type="Line">
        <Data>
            <X StringValues="Desktops, Notebooks, AIO, Tablets, Phones" />
            <Y DoubleValues="3, 6, 2, 9, 5" />
        </Data>
     <cc1:CompositeChartSeries>
     <cc1:CompositeChartSeries Label="Canada" LegendEntry="true" Type="Line">
           <Data>
             <X StringValues="Desktops, Notebooks, AIO, Tablets, Phones" />
             <Y DoubleValues="1, 3, 4, 7, 2" />
           </Data>
     <cc1:CompositeChartSeries>
    </SeriesList>
    
    See Also