ChartSeriesType

ChartSeriesType enumeration

Specifies a type of a chart series.

public enum ChartSeriesType

Values

NameValueDescription
Area0Represents an Area chart series.
AreaStacked1Represents a Stacked Area chart series.
AreaPercentStacked2Represents a 100% Stacked Area chart series.
Area3D3Represents a 3D Area chart series.
Area3DStacked4Represents a 3D Stacked Area chart series.
Area3DPercentStacked5Represents a 3D 100% Stacked Area chart series.
Bar6Represents a Bar chart series.
BarStacked7Represents a Stacked Bar chart series.
BarPercentStacked8Represents a 100% Stacked Bar chart series.
Bar3D9Represents a 3D Bar chart series.
Bar3DStacked10Represents a 3D Stacked Bar chart series.
Bar3DPercentStacked11Represents a 3D 100% Stacked Bar chart series.
Bubble12Represents a Bubble chart series.
Bubble3D13Represents a 3D Bubble chart series.
Column14Represents a Column chart series.
ColumnStacked15Represents a Stacked Column chart series.
ColumnPercentStacked16Represents a 100% Stacked Column chart series.
Column3D17Represents a 3D Column chart series.
Column3DStacked18Represents a 3D Stacked Column chart series.
Column3DPercentStacked19Represents a 3D 100% Stacked Column chart series.
Column3DClustered20Represents a 3D Clustered Column chart series.
Doughnut21Represents a Doughnut chart series.
Line22Represents a Line chart series.
LineStacked23Represents a Stacked Line chart series.
LinePercentStacked24Represents a 100% Stacked Line chart series.
Line3D25Represents a 3D Line chart series.
Pie26Represents a Pie chart series.
Pie3D27Represents a 3D Pie chart series.
PieOfBar28Represents a Pie of Bar chart series.
PieOfPie29Represents a Pie of Pie chart series.
Radar30Represents a Radar chart series.
Scatter31Represents a Scatter chart series.
Stock32Represents a Stock chart series.
Surface33Represents a Surface chart series.
Surface3D34Represents a 3D Surface chart series.
Treemap35Represents a Treemap chart series.
Sunburst36Represents a Sunburst chart series.
Histogram37Represents a Histogram chart series.
Pareto38Represents a Pareto chart series.
ParetoLine39Represents a Pareto Line chart series.
BoxAndWhisker40Represents a Box and Whisker chart series.
Waterfall41Represents a Waterfall chart series.
Funnel42Represents a Funnel chart series.
RegionMap43Represents a Region Map chart series.

Examples

Shows how to remove specific chart serie.

Document doc = new Document(MyDir + "Reporting engine template - Chart series.docx");
Chart chart = ((Shape)doc.GetChild(NodeType.Shape, 0, true)).Chart;

// Remove all series of the Column type.
for (int i = chart.Series.Count - 1; i >= 0; i--)
{
    if (chart.Series[i].SeriesType == ChartSeriesType.Column)
        chart.Series.RemoveAt(i);
}

chart.Series.Add(
    "Aspose Series",
    new string[] { "Category 1", "Category 2", "Category 3", "Category 4" },
    new double[] { 5.6, 7.1, 2.9, 8.9 });

doc.Save(ArtifactsDir + "Charts.RemoveSpecificChartSeries.docx");

See Also