Partager via


BarChart Class

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

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Drawing.Charts.BarChart

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(AxisId))> _
<ChildElementInfoAttribute(GetType(ExtensionList))> _
<ChildElementInfoAttribute(GetType(BarDirection))> _
<ChildElementInfoAttribute(GetType(BarGrouping))> _
<ChildElementInfoAttribute(GetType(VaryColors))> _
<ChildElementInfoAttribute(GetType(BarChartSeries))> _
<ChildElementInfoAttribute(GetType(DataLabels))> _
<ChildElementInfoAttribute(GetType(GapWidth))> _
<ChildElementInfoAttribute(GetType(Overlap))> _
<ChildElementInfoAttribute(GetType(SeriesLines))> _
Public Class BarChart _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As BarChart
[ChildElementInfoAttribute(typeof(AxisId))]
[ChildElementInfoAttribute(typeof(ExtensionList))]
[ChildElementInfoAttribute(typeof(BarDirection))]
[ChildElementInfoAttribute(typeof(BarGrouping))]
[ChildElementInfoAttribute(typeof(VaryColors))]
[ChildElementInfoAttribute(typeof(BarChartSeries))]
[ChildElementInfoAttribute(typeof(DataLabels))]
[ChildElementInfoAttribute(typeof(GapWidth))]
[ChildElementInfoAttribute(typeof(Overlap))]
[ChildElementInfoAttribute(typeof(SeriesLines))]
public class BarChart : OpenXmlCompositeElement

Remarks

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]

21.2.2.16 barChart (Bar Charts)

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

Parent Elements

plotArea (§21.2.2.145)

Child Elements

Subclause

axId (Axis ID)

§21.2.2.9

barDir (Bar Direction)

§21.2.2.17

dLbls (Data Labels)

§21.2.2.49

extLst (Chart Extensibility)

§21.2.2.64

gapWidth (Gap Width)

§21.2.2.75

grouping (Bar Grouping)

§21.2.2.77

overlap (Overlap)

§21.2.2.131

ser (Bar Chart Series)

§21.2.2.170

serLines (Series Lines)

§21.2.2.176

varyColors (Vary Colors by Point)

§21.2.2.227

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

Thread Safety

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

See Also

Reference

BarChart Members

DocumentFormat.OpenXml.Drawing.Charts Namespace