ChartStyle class

Office 2013 and later

Defines the ChartStyle Class. The root element of ChartStylePart. When the object is serialized out as xml, its qualified name is cs:chartStyle.

Namespace:  DocumentFormat.OpenXml.Office2013.Drawing.ChartStyle
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

No code example is currently available or this language may not be supported.

2.3.52 chartStyle

Target namespace: http://schemas.microsoft.com/office/drawing/2012/chartStyle

A CT_ChartStyle element<111> that specifies the default formatting for all chart elements.

The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this element.

<xsd:element name="chartStyle" type="CT_ChartStyle"/>

See section 5.15 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).

2.5.102 CT_ChartStyle

Target namespace: http://schemas.microsoft.com/office/drawing/2012/chartStyle

Referenced by: chartStyle

A complex type that specifies visual and text properties for all elements present on a chart.<163>

Child Elements:

axisTitle: A CT_StyleEntry element that specifies default formatting for an axis title.

categoryAxis: A CT_StyleEntry element that specifies default formatting for a category axis.

chartArea: A CT_StyleEntry element that specifies default formatting for a chart area.

dataLabel: A CT_StyleEntry element that specifies default formatting for a data label.

dataLabelCallout: A CT_StyleEntry element that specifies default formatting for a data label callout.

dataPoint: A CT_StyleEntry element that specifies default formatting for a data point on a 2-D chart of type column, bar, filled radar, stock, bubble, pie, doughnut, and area as well as 3-D bubble.

dataPoint3D: A CT_StyleEntry element that specifies default formatting for a data point on a 3-D chart of type column, bar, line, pie, area and surface.

dataPointLine: A CT_StyleEntry element that specifies default formatting for a data point on a 2-D chart of type line, scatter and radar.

dataPointMarker: A CT_StyleEntry element that specifies default formatting for markers.

dataPointMarkerLayout: A CT_MarkerLayout element that specifies additional marker properties not present in dataPointMarker.

dataPointWireframe: A CT_StyleEntry element that specifies default formatting for a data point on a surface wireframe chart.

dataTable: A CT_StyleEntry element that specifies default formatting for a data table.

downBar: A CT_StyleEntry element that specifies default formatting for a down bar.

dropLine: A CT_StyleEntry element that specifies default formatting for a drop line.

errorBar: A CT_StyleEntry element that specifies default formatting for an error bar.

floor: A CT_StyleEntry element that specifies default formatting for a floor.

gridlineMajor: A CT_StyleEntry element that specifies default formatting for a major gridline.

gridlineMinor: A CT_StyleEntry element that specifies default formatting for a minor gridline.

hiLoLine: A CT_StyleEntry element that specifies default formatting for a high low line.

leaderLine: A CT_StyleEntry element that specifies default formatting for a leader line.

legend: A CT_StyleEntry element that specifies default formatting for a legend.

plotArea: A CT_StyleEntry element that specifies default formatting for a plot area on a 2-D chart.

plotArea3D: A CT_StyleEntry element that specifies default formatting for a 3-D chart.

seriesAxis: A CT_StyleEntry element that specifies default formatting for a series axis.

seriesLine: A CT_StyleEntry element that specifies default formatting for a series line.

title: A CT_StyleEntry element that specifies default formatting for a chart title.

trendline: A CT_StyleEntry element that specifies default formatting for a trend line.

trendlineLabel: A CT_StyleEntry element that specifies default formatting for a trend line label.

upBar: A CT_StyleEntry element that specifies default formatting for an up bar.

valueAxis: A CT_StyleEntry element that specifies default formatting for a value axis.

wall: A CT_StyleEntry element that specifies default formatting for a wall.

extLst: A CT_OfficeArtExtensionList ([ISO/IEC-29500-1] section A.4.1) element that specifies the extension list in which all future extensions of element type ext are defined. The extension list, along with corresponding future extensions, is used to extend the storage capabilities of the DrawingML framework. This enables new types of data to be stored natively within the framework.

Attributes:

id: An unsignedInt ([XMLSCHEMA2] section 3.3.22) attribute that specifies the identifier for this CT_ChartStyle.

The following W3C XML Schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this complex type.

<xsd:complexType name="CT_ChartStyle">

<xsd:sequence>

<xsd:element name="axisTitle" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="categoryAxis" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="chartArea" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="dataLabel" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="dataLabelCallout" type="CT_StyleEntry" minOccurs="0" maxOccurs="1"/>

<xsd:element name="dataPoint" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="dataPoint3D" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="dataPointLine" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="dataPointMarker" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="dataPointMarkerLayout" type="CT_MarkerLayout" minOccurs="0" maxOccurs="1"/>

<xsd:element name="dataPointWireframe" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="dataTable" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="downBar" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="dropLine" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="errorBar" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="floor" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="gridlineMajor" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="gridlineMinor" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="hiLoLine" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="leaderLine" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="legend" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="plotArea" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="plotArea3D" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="seriesAxis" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="seriesLine" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="title" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="trendline" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="trendlineLabel" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="upBar" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="valueAxis" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="wall" type="CT_StyleEntry" minOccurs="1" maxOccurs="1"/>

<xsd:element name="extLst" type="a:CT_OfficeArtExtensionList" minOccurs="0" maxOccurs="1"/>

</xsd:sequence>

<xsd:attribute name="id" type="xsd:unsignedInt" use="optional"/>

</xsd:complexType>

See section 5.15 for the full W3C XML Schema ([XMLSCHEMA1] section 2.1).

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