BarChart Class

Bar Charts.When the object is serialized out as xml, its qualified name is c:barChart.

Namespace:  DocumentFormat.OpenXml.Drawing.Charts
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

public class BarChart : OpenXmlCompositeElement

The following table lists the possible child types:

  • BarDirection <c:barDir>

  • BarGrouping <c:grouping>

  • VaryColors <c:varyColors>

  • BarChartSeries <c:ser>

  • DataLabels <c:dLbls>

  • GapWidth <c:gapWidth>

  • Overlap <c:overlap>

  • SeriesLines <c:serLines>

  • AxisId <c:axId>

  • ExtensionList <c:extLst>

[ISO/IEC 29500-1 1st Edition] barChart (Bar Charts)

This element contains the 2-D bar or column series on this chart.

Parent Elements

plotArea (§

Child Elements


axId (Axis ID)


barDir (Bar Direction)


dLbls (Data Labels)


extLst (Chart Extensibility)


gapWidth (Gap Width)


grouping (Bar Grouping)


overlap (Overlap)


ser (Bar Chart Series)


serLines (Series Lines)


varyColors (Vary Colors by Point)


[Note: The W3C XML Schema definition of this element’s content model (CT_BarChart) is located in §A.5.1. end note]

© ISO/IEC29500: 2008.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions