# ExcelChartFluent

The fluent methods of ExcelChart, generated from its public properties: A property-named method sets a property and a singular-named method adds…

Class 

`OfficeIMO.Excel`

**Namespace**

`OfficeIMO.Excel`

**Assembly**

`OfficeIMO.Excel`

**Modifiers**

static

The fluent methods of [ExcelChart](/api/excel/officeimo-excel-excelchart/), generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

## Inheritance

- object
- ExcelChartFluent

Filter members 

Show inherited

## Methods

`public static ExcelChart AltText(ExcelChart excelChart, string description, string? title = null)` [#](#method-alttext-officeimo-excel-excelchart-string-string)

Sets the chart's alternative text and optional title, and clears any decorative flag.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**description string required**

The value.

**title string? = null optional**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart CategoryAxisCrossing(ExcelChart excelChart, OfficeChartAxisCrossingPosition crosses, double? crossesAt = null, OfficeChartAxisGroup axisGroup = Primary)` [#](#method-categoryaxiscrossing-officeimo-excel-excelchart-officeimo-drawing-officechartaxiscrossingposition-nullable-system-double-officeimo-drawing-officechartaxisgroup)

Sets where the category axis crosses the value axis.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**crosses OfficeIMO.Drawing.OfficeChartAxisCrossingPosition required**

The value.

**crossesAt double? = null optional**

The value.

**axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary optional**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart CategoryAxisGridlines(ExcelChart excelChart, bool? showMajor = null, bool? showMinor = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, OfficeChartAxisGroup axisGroup = Primary)` [#](#member-2be843da5832e598729eca9a)

Sets category axis gridlines visibility and optional styling.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**showMajor bool? = null optional**

The value.

**showMinor bool? = null optional**

The value.

**lineColor OfficeIMO.OfficeColor? = null optional**

The value.

**lineWidth OfficeIMO.OfficeLength? = null optional**

The value.

**axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary optional**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart CategoryAxisLabelRotation(ExcelChart excelChart, double rotationDegrees, OfficeChartAxisGroup axisGroup = Primary)` [#](#method-categoryaxislabelrotation-officeimo-excel-excelchart-double-officeimo-drawing-officechartaxisgroup)

Sets the category axis label rotation in degrees (-90..90).

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**rotationDegrees double required**

The value.

**axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary optional**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart CategoryAxisLabelTextStyle(ExcelChart excelChart, OfficeLength? fontSize = null, bool? bold = null, bool? italic = null, OfficeColor? color = null, string? fontFamily = null, OfficeChartAxisGroup axisGroup = Primary)` [#](#member-869a808d6abcb2c538c55766)

Sets the category axis label text style.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**fontSize OfficeIMO.OfficeLength? = null optional**

The value.

**bold bool? = null optional**

The value.

**italic bool? = null optional**

The value.

**color OfficeIMO.OfficeColor? = null optional**

The value.

**fontFamily string? = null optional**

The value.

**axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary optional**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart CategoryAxisLine(ExcelChart excelChart, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, bool noLine = false, OfficeChartAxisGroup axisGroup = Primary)` [#](#method-categoryaxisline-officeimo-excel-excelchart-nullable-officeimo-officecolor-nullable-officeimo-officelength-boolean-officeimo-drawing-officechartaxisgroup)

Sets category axis line visibility and optional styling.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**lineColor OfficeIMO.OfficeColor? = null optional**

The value.

**lineWidth OfficeIMO.OfficeLength? = null optional**

The value.

**noLine bool = false optional**

The value.

**axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary optional**

The value.

Returns

`ExcelChart` The same instance.

CategoryAxisNumberFormat 2 overloads

`public static ExcelChart CategoryAxisNumberFormat(ExcelChart excelChart, string formatCode, bool sourceLinked = false)` [#](#method-categoryaxisnumberformat-officeimo-excel-excelchart-string-boolean)

Sets the category axis number format.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**formatCode string required**

The value.

**sourceLinked bool = false optional**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart CategoryAxisNumberFormat(ExcelChart excelChart, string formatCode, bool sourceLinked, OfficeChartAxisGroup axisGroup)` [#](#method-categoryaxisnumberformat-officeimo-excel-excelchart-string-boolean-officeimo-drawing-officechartaxisgroup)

Sets the category axis number format for the selected axis group.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**formatCode string required**

The value.

**sourceLinked bool required**

The value.

**axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup required**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart CategoryAxisReverseOrder(ExcelChart excelChart, bool reverseOrder = true, OfficeChartAxisGroup axisGroup = Primary)` [#](#method-categoryaxisreverseorder-officeimo-excel-excelchart-boolean-officeimo-drawing-officechartaxisgroup)

Sets the category axis orientation (normal or reversed order).

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**reverseOrder bool = true optional**

The value.

**axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary optional**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart CategoryAxisScale(ExcelChart excelChart, double? minimum = null, double? maximum = null, double? majorUnit = null, double? minorUnit = null, bool? reverseOrder = null, OfficeChartAxisGroup axisGroup = Primary)` [#](#member-8e3dbf9de18938ccc89bd62c)

Sets category axis scale parameters for line, bar, column, and area charts.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**minimum double? = null optional**

Optional minimum category-axis value.

**maximum double? = null optional**

Optional maximum category-axis value.

**majorUnit double? = null optional**

Optional major unit spacing.

**minorUnit double? = null optional**

Optional minor unit spacing.

**reverseOrder bool? = null optional**

Optional category order direction.

**axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary optional**

Primary or secondary category axis.

Returns

`ExcelChart` The same instance.

CategoryAxisTitle 2 overloads

`public static ExcelChart CategoryAxisTitle(ExcelChart excelChart, string title)` [#](#method-categoryaxistitle-officeimo-excel-excelchart-string)

Sets the category axis title.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**title string required**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart CategoryAxisTitle(ExcelChart excelChart, string title, OfficeChartAxisGroup axisGroup)` [#](#method-categoryaxistitle-officeimo-excel-excelchart-string-officeimo-drawing-officechartaxisgroup)

Sets the category axis title for the selected axis group.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**title string required**

The value.

**axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup required**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart CategoryAxisTitleTextStyle(ExcelChart excelChart, OfficeLength? fontSize = null, bool? bold = null, bool? italic = null, OfficeColor? color = null, string? fontFamily = null, OfficeChartAxisGroup axisGroup = Primary)` [#](#member-b32c33b70e7ce9ca03fdac6b)

Sets the category axis title text style.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**fontSize OfficeIMO.OfficeLength? = null optional**

The value.

**bold bool? = null optional**

The value.

**italic bool? = null optional**

The value.

**color OfficeIMO.OfficeColor? = null optional**

The value.

**fontFamily string? = null optional**

The value.

**axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary optional**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart ChartAreaStyle(ExcelChart excelChart, OfficeColor? fillColor = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, bool noFill = false, bool noLine = false)` [#](#method-chartareastyle-officeimo-excel-excelchart-nullable-officeimo-officecolor-nullable-officeimo-officecolor-nullable-officeimo-officelength-boolean-boolean)

Sets chart area fill/line styling.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**fillColor OfficeIMO.OfficeColor? = null optional**

The value.

**lineColor OfficeIMO.OfficeColor? = null optional**

The value.

**lineWidth OfficeIMO.OfficeLength? = null optional**

The value.

**noFill bool = false optional**

The value.

**noLine bool = false optional**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart DataLabelCallouts(ExcelChart excelChart, bool enabled = true, OfficeChartDataLabelPosition? position = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null)` [#](#method-datalabelcallouts-officeimo-excel-excelchart-boolean-nullable-officeimo-drawing-officechartdatalabelposition-nullable-officeimo-officecolor-nullable-officeimo-officelength)

Enables callout-style labels by positioning labels outside with leader lines.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**enabled bool = true optional**

The value.

**position OfficeIMO.Drawing.OfficeChartDataLabelPosition? = null optional**

The value.

**lineColor OfficeIMO.OfficeColor? = null optional**

The value.

**lineWidth OfficeIMO.OfficeLength? = null optional**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart DataLabelLeaderLines(ExcelChart excelChart, bool showLeaderLines = true, OfficeColor? lineColor = null, OfficeLength? lineWidth = null)` [#](#method-datalabelleaderlines-officeimo-excel-excelchart-boolean-nullable-officeimo-officecolor-nullable-officeimo-officelength)

Configures data label leader lines for all chart labels.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**showLeaderLines bool = true optional**

The value.

**lineColor OfficeIMO.OfficeColor? = null optional**

The value.

**lineWidth OfficeIMO.OfficeLength? = null optional**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart DataLabels(ExcelChart excelChart, bool? showValue = null, bool? showCategoryName = null, bool? showSeriesName = null, bool? showLegendKey = null, bool? showPercent = null, OfficeChartDataLabelPosition? position = null, string? numberFormat = null, bool? sourceLinked = null)` [#](#member-87b00bc8cc8fe3637997761c)

Updates supplied data-label settings for all supported chart families; omitted flags, position and number-format settings remain unchanged.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**showValue bool? = null optional**

The value.

**showCategoryName bool? = null optional**

The value.

**showSeriesName bool? = null optional**

The value.

**showLegendKey bool? = null optional**

The value.

**showPercent bool? = null optional**

The value.

**position OfficeIMO.Drawing.OfficeChartDataLabelPosition? = null optional**

The value.

**numberFormat string? = null optional**

The value.

**sourceLinked bool? = null optional**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart DataLabelSeparator(ExcelChart excelChart, string? separator)` [#](#method-datalabelseparator-officeimo-excel-excelchart-string)

Sets the separator for all data labels.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**separator string? required**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart DataLabelShapeStyle(ExcelChart excelChart, OfficeColor? fillColor = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, bool noFill = false, bool noLine = false)` [#](#method-datalabelshapestyle-officeimo-excel-excelchart-nullable-officeimo-officecolor-nullable-officeimo-officecolor-nullable-officeimo-officelength-boolean-boolean)

Sets data label shape styling for all chart labels.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**fillColor OfficeIMO.OfficeColor? = null optional**

The value.

**lineColor OfficeIMO.OfficeColor? = null optional**

The value.

**lineWidth OfficeIMO.OfficeLength? = null optional**

The value.

**noFill bool = false optional**

The value.

**noLine bool = false optional**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart DataLabelTextStyle(ExcelChart excelChart, OfficeLength? fontSize = null, bool? bold = null, bool? italic = null, OfficeColor? color = null, string? fontFamily = null)` [#](#method-datalabeltextstyle-officeimo-excel-excelchart-nullable-officeimo-officelength-nullable-system-boolean-nullable-system-boolean-nullable-officeimo-officecolor-string)

Sets data label text style for all chart labels.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**fontSize OfficeIMO.OfficeLength? = null optional**

The value.

**bold bool? = null optional**

The value.

**italic bool? = null optional**

The value.

**color OfficeIMO.OfficeColor? = null optional**

The value.

**fontFamily string? = null optional**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart LegendTextStyle(ExcelChart excelChart, OfficeLength? fontSize = null, bool? bold = null, bool? italic = null, OfficeColor? color = null, string? fontFamily = null)` [#](#method-legendtextstyle-officeimo-excel-excelchart-nullable-officeimo-officelength-nullable-system-boolean-nullable-system-boolean-nullable-officeimo-officecolor-string)

Sets the legend text style.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**fontSize OfficeIMO.OfficeLength? = null optional**

The value.

**bold bool? = null optional**

The value.

**italic bool? = null optional**

The value.

**color OfficeIMO.OfficeColor? = null optional**

The value.

**fontFamily string? = null optional**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart Name(ExcelChart excelChart, string value)` [#](#method-name-officeimo-excel-excelchart-string)

Sets [ExcelChart.Name](/api/excel/officeimo-excel-excelchart/): Gets or sets the chart name (non-visual drawing name).

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**value string required**

The value.

Returns

`ExcelChart` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
excelChart.Name = value;         excelChart.Name(value);
```

`public static ExcelChart PlotAreaStyle(ExcelChart excelChart, OfficeColor? fillColor = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, bool noFill = false, bool noLine = false)` [#](#method-plotareastyle-officeimo-excel-excelchart-nullable-officeimo-officecolor-nullable-officeimo-officecolor-nullable-officeimo-officelength-boolean-boolean)

Sets plot area fill/line styling.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**fillColor OfficeIMO.OfficeColor? = null optional**

The value.

**lineColor OfficeIMO.OfficeColor? = null optional**

The value.

**lineWidth OfficeIMO.OfficeLength? = null optional**

The value.

**noFill bool = false optional**

The value.

**noLine bool = false optional**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart RadialLayout(ExcelChart excelChart, OfficeChartRadialLayout layout)` [#](#method-radiallayout-officeimo-excel-excelchart-officeimo-drawing-officechartradiallayout)

Sets geometry for an existing native two-dimensional pie or doughnut chart.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**layout OfficeIMO.Drawing.OfficeChartRadialLayout required**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart ScatterXAxisCrossing(ExcelChart excelChart, OfficeChartAxisCrossingPosition crosses, double? crossesAt = null)` [#](#method-scatterxaxiscrossing-officeimo-excel-excelchart-officeimo-drawing-officechartaxiscrossingposition-nullable-system-double)

Sets where the scatter X-axis crosses the Y-axis.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**crosses OfficeIMO.Drawing.OfficeChartAxisCrossingPosition required**

The value.

**crossesAt double? = null optional**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart ScatterXAxisScale(ExcelChart excelChart, double? minimum = null, double? maximum = null, double? majorUnit = null, double? minorUnit = null, bool? reverseOrder = null, bool? logScale = null, double? logBase = null)` [#](#member-ec86761dc1cd7f4303b5e323)

Sets scatter chart X-axis scale (value axis on the bottom).

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**minimum double? = null optional**

The value.

**maximum double? = null optional**

The value.

**majorUnit double? = null optional**

The value.

**minorUnit double? = null optional**

The value.

**reverseOrder bool? = null optional**

The value.

**logScale bool? = null optional**

The value.

**logBase double? = null optional**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart ScatterYAxisCrossing(ExcelChart excelChart, OfficeChartAxisCrossingPosition crosses, double? crossesAt = null)` [#](#method-scatteryaxiscrossing-officeimo-excel-excelchart-officeimo-drawing-officechartaxiscrossingposition-nullable-system-double)

Sets where the scatter Y-axis crosses the X-axis.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**crosses OfficeIMO.Drawing.OfficeChartAxisCrossingPosition required**

The value.

**crossesAt double? = null optional**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart ScatterYAxisScale(ExcelChart excelChart, double? minimum = null, double? maximum = null, double? majorUnit = null, double? minorUnit = null, bool? reverseOrder = null, bool? logScale = null, double? logBase = null)` [#](#member-7194ff754be95a4eee084dc1)

Sets scatter chart Y-axis scale (value axis on the left).

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**minimum double? = null optional**

The value.

**maximum double? = null optional**

The value.

**majorUnit double? = null optional**

The value.

**minorUnit double? = null optional**

The value.

**reverseOrder bool? = null optional**

The value.

**logScale bool? = null optional**

The value.

**logBase double? = null optional**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart SecondaryValueAxis(ExcelChart excelChart, OfficeChartValueAxisLayout layout)` [#](#method-secondaryvalueaxis-officeimo-excel-excelchart-officeimo-drawing-officechartvalueaxislayout)

Sets independent bounds, tick spacing and appearance, and number format on the existing secondary value axis.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**layout OfficeIMO.Drawing.OfficeChartValueAxisLayout required**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart Title(ExcelChart excelChart, string title)` [#](#method-title-officeimo-excel-excelchart-string)

Sets the chart title text.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**title string required**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart TitleTextStyle(ExcelChart excelChart, OfficeLength? fontSize = null, bool? bold = null, bool? italic = null, OfficeColor? color = null, string? fontFamily = null)` [#](#method-titletextstyle-officeimo-excel-excelchart-nullable-officeimo-officelength-nullable-system-boolean-nullable-system-boolean-nullable-officeimo-officecolor-string)

Sets the chart title text style.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**fontSize OfficeIMO.OfficeLength? = null optional**

The value.

**bold bool? = null optional**

The value.

**italic bool? = null optional**

The value.

**color OfficeIMO.OfficeColor? = null optional**

The value.

**fontFamily string? = null optional**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart ValueAxisCrossBetween(ExcelChart excelChart, OfficeChartAxisCrossBetween between, OfficeChartAxisGroup axisGroup = Primary)` [#](#method-valueaxiscrossbetween-officeimo-excel-excelchart-officeimo-drawing-officechartaxiscrossbetween-officeimo-drawing-officechartaxisgroup)

Sets how the value axis crosses between categories.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**between OfficeIMO.Drawing.OfficeChartAxisCrossBetween required**

The value.

**axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary optional**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart ValueAxisCrossing(ExcelChart excelChart, OfficeChartAxisCrossingPosition crosses, double? crossesAt = null, OfficeChartAxisGroup axisGroup = Primary)` [#](#method-valueaxiscrossing-officeimo-excel-excelchart-officeimo-drawing-officechartaxiscrossingposition-nullable-system-double-officeimo-drawing-officechartaxisgroup)

Sets where the value axis crosses the category axis.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**crosses OfficeIMO.Drawing.OfficeChartAxisCrossingPosition required**

The value.

**crossesAt double? = null optional**

The value.

**axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary optional**

The value.

Returns

`ExcelChart` The same instance.

ValueAxisDisplayUnits 4 overloads

`public static ExcelChart ValueAxisDisplayUnits(ExcelChart excelChart, OfficeChartDisplayUnit unit, bool showLabel = true, OfficeChartAxisGroup axisGroup = Primary)` [#](#method-valueaxisdisplayunits-officeimo-excel-excelchart-officeimo-drawing-officechartdisplayunit-boolean-officeimo-drawing-officechartaxisgroup)

Sets display units for the value axis.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**unit OfficeIMO.Drawing.OfficeChartDisplayUnit required**

The value.

**showLabel bool = true optional**

The value.

**axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary optional**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart ValueAxisDisplayUnits(ExcelChart excelChart, OfficeChartDisplayUnit unit, string labelText, bool showLabel = true, OfficeChartAxisGroup axisGroup = Primary)` [#](#method-valueaxisdisplayunits-officeimo-excel-excelchart-officeimo-drawing-officechartdisplayunit-string-boolean-officeimo-drawing-officechartaxisgroup)

Sets display units for the value axis with custom label text.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**unit OfficeIMO.Drawing.OfficeChartDisplayUnit required**

The value.

**labelText string required**

The value.

**showLabel bool = true optional**

The value.

**axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary optional**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart ValueAxisDisplayUnits(ExcelChart excelChart, double customUnit, bool showLabel = true, OfficeChartAxisGroup axisGroup = Primary)` [#](#method-valueaxisdisplayunits-officeimo-excel-excelchart-double-boolean-officeimo-drawing-officechartaxisgroup)

Sets custom display units for the value axis.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**customUnit double required**

The value.

**showLabel bool = true optional**

The value.

**axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary optional**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart ValueAxisDisplayUnits(ExcelChart excelChart, double customUnit, string labelText, bool showLabel = true, OfficeChartAxisGroup axisGroup = Primary)` [#](#method-valueaxisdisplayunits-officeimo-excel-excelchart-double-string-boolean-officeimo-drawing-officechartaxisgroup)

Sets custom display units for the value axis with custom label text.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**customUnit double required**

The value.

**labelText string required**

The value.

**showLabel bool = true optional**

The value.

**axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary optional**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart ValueAxisGridlines(ExcelChart excelChart, bool? showMajor = null, bool? showMinor = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, OfficeChartAxisGroup axisGroup = Primary)` [#](#member-8171a830a1bf9447a068dfcb)

Sets value axis gridlines visibility and optional styling.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**showMajor bool? = null optional**

The value.

**showMinor bool? = null optional**

The value.

**lineColor OfficeIMO.OfficeColor? = null optional**

The value.

**lineWidth OfficeIMO.OfficeLength? = null optional**

The value.

**axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary optional**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart ValueAxisLabelRotation(ExcelChart excelChart, double rotationDegrees, OfficeChartAxisGroup axisGroup = Primary)` [#](#method-valueaxislabelrotation-officeimo-excel-excelchart-double-officeimo-drawing-officechartaxisgroup)

Sets the value axis label rotation in degrees (-90..90).

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**rotationDegrees double required**

The value.

**axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary optional**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart ValueAxisLabelTextStyle(ExcelChart excelChart, OfficeLength? fontSize = null, bool? bold = null, bool? italic = null, OfficeColor? color = null, string? fontFamily = null, OfficeChartAxisGroup axisGroup = Primary)` [#](#member-529178d928edd3b9eced24a1)

Sets the value axis label text style.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**fontSize OfficeIMO.OfficeLength? = null optional**

The value.

**bold bool? = null optional**

The value.

**italic bool? = null optional**

The value.

**color OfficeIMO.OfficeColor? = null optional**

The value.

**fontFamily string? = null optional**

The value.

**axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary optional**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart ValueAxisLine(ExcelChart excelChart, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, bool noLine = false, OfficeChartAxisGroup axisGroup = Primary)` [#](#method-valueaxisline-officeimo-excel-excelchart-nullable-officeimo-officecolor-nullable-officeimo-officelength-boolean-officeimo-drawing-officechartaxisgroup)

Sets value axis line visibility and optional styling.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**lineColor OfficeIMO.OfficeColor? = null optional**

The value.

**lineWidth OfficeIMO.OfficeLength? = null optional**

The value.

**noLine bool = false optional**

The value.

**axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary optional**

The value.

Returns

`ExcelChart` The same instance.

ValueAxisNumberFormat 2 overloads

`public static ExcelChart ValueAxisNumberFormat(ExcelChart excelChart, string formatCode, bool sourceLinked = false)` [#](#method-valueaxisnumberformat-officeimo-excel-excelchart-string-boolean)

Sets the value axis number format.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**formatCode string required**

The value.

**sourceLinked bool = false optional**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart ValueAxisNumberFormat(ExcelChart excelChart, string formatCode, bool sourceLinked, OfficeChartAxisGroup axisGroup)` [#](#method-valueaxisnumberformat-officeimo-excel-excelchart-string-boolean-officeimo-drawing-officechartaxisgroup)

Sets the value axis number format for the selected axis group.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**formatCode string required**

The value.

**sourceLinked bool required**

The value.

**axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup required**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart ValueAxisScale(ExcelChart excelChart, double? minimum = null, double? maximum = null, double? majorUnit = null, double? minorUnit = null, double? logBase = null, bool? reverseOrder = null, OfficeChartAxisGroup axisGroup = Primary, bool? logScale = null)` [#](#member-ad34e344df9824b551f16c5e)

Sets value axis scale parameters for the selected axis group.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**minimum double? = null optional**

The value.

**maximum double? = null optional**

The value.

**majorUnit double? = null optional**

The value.

**minorUnit double? = null optional**

The value.

**logBase double? = null optional**

The value.

**reverseOrder bool? = null optional**

The value.

**axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary optional**

The value.

**logScale bool? = null optional**

The value.

Returns

`ExcelChart` The same instance.

ValueAxisTitle 2 overloads

`public static ExcelChart ValueAxisTitle(ExcelChart excelChart, string title)` [#](#method-valueaxistitle-officeimo-excel-excelchart-string)

Sets the value axis title.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**title string required**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart ValueAxisTitle(ExcelChart excelChart, string title, OfficeChartAxisGroup axisGroup)` [#](#method-valueaxistitle-officeimo-excel-excelchart-string-officeimo-drawing-officechartaxisgroup)

Sets the value axis title for the selected axis group.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**title string required**

The value.

**axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup required**

The value.

Returns

`ExcelChart` The same instance.

`public static ExcelChart ValueAxisTitleTextStyle(ExcelChart excelChart, OfficeLength? fontSize = null, bool? bold = null, bool? italic = null, OfficeColor? color = null, string? fontFamily = null, OfficeChartAxisGroup axisGroup = Primary)` [#](#member-ef7be9034ca2069d823822b1)

Sets the value axis title text style.

Parameters

**excelChart OfficeIMO.Excel.ExcelChart required**

The instance.

**fontSize OfficeIMO.OfficeLength? = null optional**

The value.

**bold bool? = null optional**

The value.

**italic bool? = null optional**

The value.

**color OfficeIMO.OfficeColor? = null optional**

The value.

**fontFamily string? = null optional**

The value.

**axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary optional**

The value.

Returns

`ExcelChart` The same instance.

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

<!-- PowerForge markdown artifact sha256:8A29BD6966E55AD15A5AC945AFE48E621C5F5F950E90E793BDE4376F4945DC2A -->
