ExcelChart
OfficeIMO.Excel
Represents a chart on a worksheet.
Inheritance
- object
- ExcelChart
Usage
Explore 108 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 106
- Extension method ExcelChart.ApplyDashboardPreset
- Method ExcelChart.ApplyStylePreset
- Method ExcelChart.ClearSeriesTrendline
- Method ExcelChart.ClearTitle
- Method ExcelChart.ClearValueAxisDisplayUnits
- Method ExcelChart.HideLegend
- Method ExcelChart.SetCategoryAxisCrossing
- Method ExcelChart.SetCategoryAxisGridlines
- Method ExcelChart.SetCategoryAxisLabelRotation
- Method ExcelChart.SetCategoryAxisLabelTextStyle
- Method ExcelChart.SetCategoryAxisLine
- Method ExcelChart.SetCategoryAxisNumberFormat
- Method ExcelChart.SetCategoryAxisReverseOrder
- Method ExcelChart.SetCategoryAxisScale
- Method ExcelChart.SetCategoryAxisTickLabelPosition
- Method ExcelChart.SetCategoryAxisTitle
- Method ExcelChart.SetCategoryAxisTitleTextStyle
- Method ExcelChart.SetChartAreaStyle
- Method ExcelChart.SetDataLabelCallouts
- Method ExcelChart.SetDataLabelLeaderLines
- Method ExcelChart.SetDataLabels
- Method ExcelChart.SetDataLabelSeparator
- Method ExcelChart.SetDataLabelShapeStyle
- Method ExcelChart.SetDataLabelTextStyle
- Method ExcelChart.SetDataPointColor
- Method ExcelChart.SetDataPointExplosion
- Method ExcelChart.SetDataPointFillColor
- Method ExcelChart.SetDataPointLineColor
- Method ExcelChart.SetDataPointStyle
- Method ExcelChart.SetLegend
- Method ExcelChart.SetLegendTextStyle
- Method ExcelChart.SetPivotSource
- Method ExcelChart.SetPlotAreaStyle
- Method ExcelChart.SetRadialLayout
- Method ExcelChart.SetScatterXAxisCrossing
- Method ExcelChart.SetScatterXAxisScale
- Method ExcelChart.SetScatterYAxisCrossing
- Method ExcelChart.SetScatterYAxisScale
- Method ExcelChart.SetSecondaryValueAxis
- Method ExcelChart.SetSeriesDataLabelCallouts
- Method ExcelChart.SetSeriesDataLabelForPoint
- Method ExcelChart.SetSeriesDataLabelLeaderLines
- Method ExcelChart.SetSeriesDataLabels
- Method ExcelChart.SetSeriesDataLabelSeparator
- Method ExcelChart.SetSeriesDataLabelSeparatorForPoint
- Method ExcelChart.SetSeriesDataLabelShapeStyle
- Method ExcelChart.SetSeriesDataLabelShapeStyleForPoint
- Method ExcelChart.SetSeriesDataLabelTemplate
- Method ExcelChart.SetSeriesDataLabelTextStyle
- Method ExcelChart.SetSeriesDataLabelTextStyleByName
- Method ExcelChart.SetSeriesDataLabelTextStyleForPoint
- Method ExcelChart.SetSeriesDataLabelTextStyleForPointByName
- Method ExcelChart.SetSeriesFillColor
- Method ExcelChart.SetSeriesLineColor
- Method ExcelChart.SetSeriesMarker
- Method ExcelChart.SetSeriesMarkerByName
- Method ExcelChart.SetSeriesNoFill
- Method ExcelChart.SetSeriesPointFillColor
- Method ExcelChart.SetSeriesTrendline
- Method ExcelChart.SetTitle
- Method ExcelChart.SetTitleTextStyle
- Method ExcelChart.SetValueAxisCrossBetween
- Method ExcelChart.SetValueAxisCrossing
- Method ExcelChart.SetValueAxisDisplayUnits
- Method ExcelChart.SetValueAxisGridlines
- Method ExcelChart.SetValueAxisLabelRotation
- Method ExcelChart.SetValueAxisLabelTextStyle
- Method ExcelChart.SetValueAxisLine
- Method ExcelChart.SetValueAxisNumberFormat
- Method ExcelChart.SetValueAxisScale
- Method ExcelChart.SetValueAxisTickLabelPosition
- Method ExcelChart.SetValueAxisTitle
- Method ExcelChart.SetValueAxisTitleTextStyle
- Method ExcelChart.UpdateData
- Method ExcelChart.UpdateData``1
- Extension method ExcelSheet.AddContributionChart
- Extension method ExcelSheet.AddDashboardChart
- Extension method ExcelSheet.AddKpiScorecardChart
- Extension method ExcelSheet.AddRevenueTrendChart
- Extension method ExcelSheet.AddStatusBreakdownChart
- Extension method ExcelSheet.AddTopNBarChart
- Extension method ExcelSheet.AddVarianceColumnChart
- Extension method ExcelSheet.AddVarianceWaterfallChart
- Method ExcelSheet.AddBubbleChartFromRanges
- Method ExcelSheet.AddChart
- Method ExcelSheet.AddChartFromRanges
- Method ExcelSheet.AddChart``1
- Method ExcelSheet.AddChart``2
- Method ExcelSheet.AddFunnelChart
- Method ExcelSheet.AddHistogramChart
- Method ExcelSheet.AddParetoChart
- Method ExcelSheet.AddPivotChartFromRange
- Method ExcelSheet.AddScatterChartFromRanges
- Method ExcelSheet.AddWaterfallChart
- Method ExcelSheet.GetChart
- Property ExcelSheet.Charts
- Property ExcelDashboardResult.Chart
- Method ExcelReportExtensions.AddContributionChart
- Method ExcelReportExtensions.AddDashboardChart
- Method ExcelReportExtensions.AddKpiScorecardChart
- Method ExcelReportExtensions.AddRevenueTrendChart
- Method ExcelReportExtensions.AddStatusBreakdownChart
- Method ExcelReportExtensions.AddTopNBarChart
- Method ExcelReportExtensions.AddVarianceColumnChart
- Method ExcelReportExtensions.AddVarianceWaterfallChart
- Method ExcelReportExtensions.ApplyDashboardPreset
Accepted by parameters 2
- Extension method ExcelChart.ApplyDashboardPreset
- Method ExcelReportExtensions.ApplyDashboardPreset
Methods
public ExcelChart ApplyStylePreset(int styleId = 251, int colorStyleId = 10) #Applies a built-in chart style/color preset.
Parameters
- styleId int = 251
- colorStyleId int = 10
Returns
ExcelChartpublic ExcelChart ApplyStylePreset(ExcelChartStylePreset preset) #Applies a chart style/color preset.
Parameters
- preset OfficeIMO.Excel.ExcelChartStylePreset
Returns
ExcelChartpublic ExcelChart ClearSeriesTrendline(int seriesIndex) #Removes trendlines from a chart series by index.
Parameters
- seriesIndex int
Returns
ExcelChartpublic ExcelChart ClearSeriesTrendline(string seriesName, bool ignoreCase = true) #Removes trendlines from a chart series by name.
Parameters
- seriesName string
- ignoreCase bool = true
Returns
ExcelChartpublic ExcelChart ClearValueAxisDisplayUnits(OfficeChartAxisGroup axisGroup = Primary) #Clears display units from the value axis.
Parameters
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
Returns
ExcelChartpublic OfficeConversionReport SaveAsImage(string path, ExcelImageExportOptions? options = null, CancellationToken cancellationToken = default) #Writes the chart to a file and returns its fidelity report.
Parameters
- path string
- options OfficeIMO.Excel.ExcelImageExportOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
OfficeConversionReportpublic OfficeConversionReport SaveAsImage(Stream stream, ExcelImageExportOptions? options = null, CancellationToken cancellationToken = default) #Writes the chart to a caller-owned stream and returns its fidelity report.
Parameters
- stream System.IO.Stream
- options OfficeIMO.Excel.ExcelImageExportOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
OfficeConversionReportpublic async Task<OfficeConversionReport> SaveAsImageAsync(string path, ExcelImageExportOptions? options = null, CancellationToken cancellationToken = default) #Asynchronously writes the chart to a file and returns its fidelity report.
Parameters
- path string
- options OfficeIMO.Excel.ExcelImageExportOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
Task<OfficeConversionReport>public async Task<OfficeConversionReport> SaveAsImageAsync(Stream stream, ExcelImageExportOptions? options = null, CancellationToken cancellationToken = default) #Asynchronously writes the chart to a caller-owned stream and returns its fidelity report.
Parameters
- stream System.IO.Stream
- options OfficeIMO.Excel.ExcelImageExportOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
Task<OfficeConversionReport>public ExcelChart SetCategoryAxisCrossing(OfficeChartAxisCrossingPosition crosses, double? crossesAt = null, OfficeChartAxisGroup axisGroup = Primary) #Sets where the category axis crosses the value axis.
Parameters
- crosses OfficeIMO.Drawing.OfficeChartAxisCrossingPosition
- crossesAt double? = null
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
Returns
ExcelChartpublic ExcelChart SetCategoryAxisGridlines(bool? showMajor = null, bool? showMinor = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, OfficeChartAxisGroup axisGroup = Primary) #Sets category axis gridlines visibility and optional styling.
Parameters
- showMajor bool? = null
- showMinor bool? = null
- lineColor OfficeIMO.OfficeColor? = null
- lineWidth OfficeIMO.OfficeLength? = null
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
Returns
ExcelChartpublic ExcelChart SetCategoryAxisLabelRotation(double rotationDegrees, OfficeChartAxisGroup axisGroup = Primary) #Sets the category axis label rotation in degrees (-90..90).
Parameters
- rotationDegrees double
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
Returns
ExcelChartpublic ExcelChart SetCategoryAxisLabelTextStyle(OfficeLength? fontSize = null, bool? bold = null, bool? italic = null, OfficeColor? color = null, string? fontFamily = null, OfficeChartAxisGroup axisGroup = Primary) #Sets the category axis label text style.
Parameters
- fontSize OfficeIMO.OfficeLength? = null
- bold bool? = null
- italic bool? = null
- color OfficeIMO.OfficeColor? = null
- fontFamily string? = null
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
Returns
ExcelChartpublic ExcelChart SetCategoryAxisLine(OfficeColor? lineColor = null, OfficeLength? lineWidth = null, bool noLine = false, OfficeChartAxisGroup axisGroup = Primary) #Sets category axis line visibility and optional styling.
Parameters
- lineColor OfficeIMO.OfficeColor? = null
- lineWidth OfficeIMO.OfficeLength? = null
- noLine bool = false
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
Returns
ExcelChartpublic ExcelChart SetCategoryAxisNumberFormat(string formatCode, bool sourceLinked = false) #Sets the category axis number format.
Parameters
- formatCode string
- sourceLinked bool = false
Returns
ExcelChartpublic ExcelChart SetCategoryAxisNumberFormat(string formatCode, bool sourceLinked, OfficeChartAxisGroup axisGroup) #Sets the category axis number format for the selected axis group.
Parameters
- formatCode string
- sourceLinked bool
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup
Returns
ExcelChartpublic ExcelChart SetCategoryAxisReverseOrder(bool reverseOrder = true, OfficeChartAxisGroup axisGroup = Primary) #Sets the category axis orientation (normal or reversed order).
Parameters
- reverseOrder bool = true
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
Returns
ExcelChartpublic ExcelChart SetCategoryAxisScale(double? minimum = null, double? maximum = null, double? majorUnit = null, double? minorUnit = null, bool? reverseOrder = null, OfficeChartAxisGroup axisGroup = Primary) #Sets category axis scale parameters for line, bar, column, and area charts.
Parameters
- minimum double? = null
- Optional minimum category-axis value.
- maximum double? = null
- Optional maximum category-axis value.
- majorUnit double? = null
- Optional major unit spacing.
- minorUnit double? = null
- Optional minor unit spacing.
- reverseOrder bool? = null
- Optional category order direction.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
- Primary or secondary category axis.
Returns
ExcelChartpublic ExcelChart SetCategoryAxisTickLabelPosition(OfficeChartAxisTickLabelPosition position, OfficeChartAxisGroup axisGroup = Primary) #Sets the category axis tick label position.
Parameters
- position OfficeIMO.Drawing.OfficeChartAxisTickLabelPosition
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
Returns
ExcelChartpublic ExcelChart SetCategoryAxisTitle(string title) #Sets the category axis title.
Parameters
- title string
Returns
ExcelChartpublic ExcelChart SetCategoryAxisTitle(string title, OfficeChartAxisGroup axisGroup) #Sets the category axis title for the selected axis group.
Parameters
- title string
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup
Returns
ExcelChartpublic ExcelChart SetCategoryAxisTitleTextStyle(OfficeLength? fontSize = null, bool? bold = null, bool? italic = null, OfficeColor? color = null, string? fontFamily = null, OfficeChartAxisGroup axisGroup = Primary) #Sets the category axis title text style.
Parameters
- fontSize OfficeIMO.OfficeLength? = null
- bold bool? = null
- italic bool? = null
- color OfficeIMO.OfficeColor? = null
- fontFamily string? = null
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
Returns
ExcelChartpublic ExcelChart SetChartAreaStyle(OfficeColor? fillColor = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, bool noFill = false, bool noLine = false) #Sets chart area fill/line styling.
Parameters
- fillColor OfficeIMO.OfficeColor? = null
- lineColor OfficeIMO.OfficeColor? = null
- lineWidth OfficeIMO.OfficeLength? = null
- noFill bool = false
- noLine bool = false
Returns
ExcelChartpublic ExcelChart SetDataLabelCallouts(bool enabled = true, OfficeChartDataLabelPosition? position = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null) #Enables callout-style labels by positioning labels outside with leader lines.
Parameters
- enabled bool = true
- position OfficeIMO.Drawing.OfficeChartDataLabelPosition? = null
- lineColor OfficeIMO.OfficeColor? = null
- lineWidth OfficeIMO.OfficeLength? = null
Returns
ExcelChartpublic ExcelChart SetDataLabelLeaderLines(bool showLeaderLines = true, OfficeColor? lineColor = null, OfficeLength? lineWidth = null) #Configures data label leader lines for all chart labels.
Parameters
- showLeaderLines bool = true
- lineColor OfficeIMO.OfficeColor? = null
- lineWidth OfficeIMO.OfficeLength? = null
Returns
ExcelChartpublic ExcelChart SetDataLabels(bool? showValue = null, bool? showCategoryName = null, bool? showSeriesName = null, bool? showLegendKey = null, bool? showPercent = null, OfficeChartDataLabelPosition? position = null, string? numberFormat = null, bool? sourceLinked = null) #Updates supplied data-label settings for all supported chart families; omitted flags, position and number-format settings remain unchanged.
Parameters
- showValue bool? = null
- showCategoryName bool? = null
- showSeriesName bool? = null
- showLegendKey bool? = null
- showPercent bool? = null
- position OfficeIMO.Drawing.OfficeChartDataLabelPosition? = null
- numberFormat string? = null
- sourceLinked bool? = null
Returns
ExcelChartpublic ExcelChart SetDataLabelSeparator(string? separator) #Sets the separator for all data labels.
Parameters
- separator string?
Returns
ExcelChartpublic ExcelChart SetDataLabelShapeStyle(OfficeColor? fillColor = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, bool noFill = false, bool noLine = false) #Sets data label shape styling for all chart labels.
Parameters
- fillColor OfficeIMO.OfficeColor? = null
- lineColor OfficeIMO.OfficeColor? = null
- lineWidth OfficeIMO.OfficeLength? = null
- noFill bool = false
- noLine bool = false
Returns
ExcelChartpublic ExcelChart SetDataLabelTextStyle(OfficeLength? fontSize = null, bool? bold = null, bool? italic = null, OfficeColor? color = null, string? fontFamily = null) #Sets data label text style for all chart labels.
Parameters
- fontSize OfficeIMO.OfficeLength? = null
- bold bool? = null
- italic bool? = null
- color OfficeIMO.OfficeColor? = null
- fontFamily string? = null
Returns
ExcelChartpublic ExcelChart SetDataPointColor(int seriesIndex, uint pointIndex, OfficeColor? fillColor = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null) #Sets fill and/or outline styling for a single chart data point by series index and zero-based point index.
Parameters
- seriesIndex int
- pointIndex uint
- fillColor OfficeIMO.OfficeColor? = null
- lineColor OfficeIMO.OfficeColor? = null
- lineWidth OfficeIMO.OfficeLength? = null
Returns
ExcelChartpublic ExcelChart SetDataPointColor(string seriesName, uint pointIndex, OfficeColor? fillColor = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, bool ignoreCase = true) #Sets fill and/or outline styling for a single chart data point by series name and zero-based point index.
Parameters
- seriesName string
- pointIndex uint
- fillColor OfficeIMO.OfficeColor? = null
- lineColor OfficeIMO.OfficeColor? = null
- lineWidth OfficeIMO.OfficeLength? = null
- ignoreCase bool = true
Returns
ExcelChartpublic ExcelChart SetDataPointExplosion(int seriesIndex, uint pointIndex, int? percent) #Sets one pie or doughnut slice's outward offset as a percentage of its radius. Null restores the series offset; zero explicitly removes the slice offset.
Parameters
- seriesIndex int
- pointIndex uint
- percent int?
Returns
ExcelChartpublic ExcelChart SetDataPointFillColor(int seriesIndex, uint pointIndex, OfficeColor color) #Sets the fill color for a single chart data point by series index and zero-based point index.
Parameters
- seriesIndex int
- pointIndex uint
- color OfficeIMO.OfficeColor
Returns
ExcelChartpublic ExcelChart SetDataPointFillColor(string seriesName, uint pointIndex, OfficeColor color, bool ignoreCase = true) #Sets the fill color for a single chart data point by series name and zero-based point index.
Parameters
- seriesName string
- pointIndex uint
- color OfficeIMO.OfficeColor
- ignoreCase bool = true
Returns
ExcelChartpublic ExcelChart SetDataPointLineColor(int seriesIndex, uint pointIndex, OfficeColor color, OfficeLength? width = null) #Sets the outline color and optional outline width for a single chart data point by series index and zero-based point index.
Parameters
- seriesIndex int
- pointIndex uint
- color OfficeIMO.OfficeColor
- width OfficeIMO.OfficeLength? = null
Returns
ExcelChartpublic ExcelChart SetDataPointLineColor(string seriesName, uint pointIndex, OfficeColor color, OfficeLength? width = null, bool ignoreCase = true) #Sets the outline color and optional outline width for a single chart data point by series name and zero-based point index.
Parameters
- seriesName string
- pointIndex uint
- color OfficeIMO.OfficeColor
- width OfficeIMO.OfficeLength? = null
- ignoreCase bool = true
Returns
ExcelChartpublic ExcelChart SetDataPointStyle(int seriesIndex, uint pointIndex, OfficeChartPointStyle? style) #Replaces a point's fill/outline overrides. Null restores series/theme inheritance.
Parameters
- seriesIndex int
- pointIndex uint
- style OfficeIMO.Drawing.OfficeChartPointStyle?
Returns
ExcelChartpublic ExcelChart SetLegend(OfficeChartLegendPosition? position = null, bool? overlay = null) #Shows the legend and updates only the supplied position or overlay state.
Parameters
- position OfficeIMO.Drawing.OfficeChartLegendPosition? = null
- overlay bool? = null
Returns
ExcelChartpublic ExcelChart SetLegendTextStyle(OfficeLength? fontSize = null, bool? bold = null, bool? italic = null, OfficeColor? color = null, string? fontFamily = null) #Sets the legend text style.
Parameters
- fontSize OfficeIMO.OfficeLength? = null
- bold bool? = null
- italic bool? = null
- color OfficeIMO.OfficeColor? = null
- fontFamily string? = null
Returns
ExcelChartpublic ExcelChart SetPivotSource(string pivotTableName, uint formatId = 0) #Marks the chart as sourced from a pivot table.
Parameters
- pivotTableName string
- Pivot table name to assign as the chart's pivot source.
- formatId uint = 0
- Pivot chart format id.
Returns
ExcelChartpublic ExcelChart SetPlotAreaStyle(OfficeColor? fillColor = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, bool noFill = false, bool noLine = false) #Sets plot area fill/line styling.
Parameters
- fillColor OfficeIMO.OfficeColor? = null
- lineColor OfficeIMO.OfficeColor? = null
- lineWidth OfficeIMO.OfficeLength? = null
- noFill bool = false
- noLine bool = false
Returns
ExcelChartpublic ExcelChart SetRadialLayout(OfficeChartRadialLayout layout) #Sets geometry for an existing native two-dimensional pie or doughnut chart.
Parameters
- layout OfficeIMO.Drawing.OfficeChartRadialLayout
Returns
ExcelChartpublic ExcelChart SetScatterXAxisCrossing(OfficeChartAxisCrossingPosition crosses, double? crossesAt = null) #Sets where the scatter X-axis crosses the Y-axis.
Parameters
- crosses OfficeIMO.Drawing.OfficeChartAxisCrossingPosition
- crossesAt double? = null
Returns
ExcelChartpublic ExcelChart SetScatterXAxisScale(double? minimum = null, double? maximum = null, double? majorUnit = null, double? minorUnit = null, bool? reverseOrder = null, bool? logScale = null, double? logBase = null) #Sets scatter chart X-axis scale (value axis on the bottom).
Parameters
- minimum double? = null
- maximum double? = null
- majorUnit double? = null
- minorUnit double? = null
- reverseOrder bool? = null
- logScale bool? = null
- logBase double? = null
Returns
ExcelChartpublic ExcelChart SetScatterYAxisCrossing(OfficeChartAxisCrossingPosition crosses, double? crossesAt = null) #Sets where the scatter Y-axis crosses the X-axis.
Parameters
- crosses OfficeIMO.Drawing.OfficeChartAxisCrossingPosition
- crossesAt double? = null
Returns
ExcelChartpublic ExcelChart SetScatterYAxisScale(double? minimum = null, double? maximum = null, double? majorUnit = null, double? minorUnit = null, bool? reverseOrder = null, bool? logScale = null, double? logBase = null) #Sets scatter chart Y-axis scale (value axis on the left).
Parameters
- minimum double? = null
- maximum double? = null
- majorUnit double? = null
- minorUnit double? = null
- reverseOrder bool? = null
- logScale bool? = null
- logBase double? = null
Returns
ExcelChartpublic ExcelChart SetSecondaryValueAxis(OfficeChartValueAxisLayout layout) #Sets independent bounds, tick spacing and appearance, and number format on the existing secondary value axis.
Parameters
- layout OfficeIMO.Drawing.OfficeChartValueAxisLayout
Returns
ExcelChartpublic ExcelChart SetSeriesDataLabelCallouts(int seriesIndex, bool enabled = true, OfficeChartDataLabelPosition? position = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null) #Enables callout-style labels for a series by index.
Parameters
- seriesIndex int
- enabled bool = true
- position OfficeIMO.Drawing.OfficeChartDataLabelPosition? = null
- lineColor OfficeIMO.OfficeColor? = null
- lineWidth OfficeIMO.OfficeLength? = null
Returns
ExcelChartpublic ExcelChart SetSeriesDataLabelCallouts(string seriesName, bool enabled = true, OfficeChartDataLabelPosition? position = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, bool ignoreCase = true) #Enables callout-style labels for a series by name.
Parameters
- seriesName string
- enabled bool = true
- position OfficeIMO.Drawing.OfficeChartDataLabelPosition? = null
- lineColor OfficeIMO.OfficeColor? = null
- lineWidth OfficeIMO.OfficeLength? = null
- ignoreCase bool = true
Returns
ExcelChartpublic ExcelChart SetSeriesDataLabelForPoint(int seriesIndex, int pointIndex, bool? showValue = null, bool? showCategoryName = null, bool? showSeriesName = null, bool? showLegendKey = null, bool? showPercent = null, bool? showBubbleSize = null, OfficeChartDataLabelPosition? position = null, string? numberFormat = null, bool sourceLinked = false) #Configures a single data label point by series index and point index.
Parameters
- seriesIndex int
- pointIndex int
- showValue bool? = null
- showCategoryName bool? = null
- showSeriesName bool? = null
- showLegendKey bool? = null
- showPercent bool? = null
- showBubbleSize bool? = null
- position OfficeIMO.Drawing.OfficeChartDataLabelPosition? = null
- numberFormat string? = null
- sourceLinked bool = false
Returns
ExcelChartpublic ExcelChart SetSeriesDataLabelForPoint(string seriesName, int pointIndex, bool? showValue = null, bool? showCategoryName = null, bool? showSeriesName = null, bool? showLegendKey = null, bool? showPercent = null, bool? showBubbleSize = null, OfficeChartDataLabelPosition? position = null, string? numberFormat = null, bool sourceLinked = false, bool ignoreCase = true) #Configures a single data label point by series name and point index.
Parameters
- seriesName string
- pointIndex int
- showValue bool? = null
- showCategoryName bool? = null
- showSeriesName bool? = null
- showLegendKey bool? = null
- showPercent bool? = null
- showBubbleSize bool? = null
- position OfficeIMO.Drawing.OfficeChartDataLabelPosition? = null
- numberFormat string? = null
- sourceLinked bool = false
- ignoreCase bool = true
Returns
ExcelChartpublic ExcelChart SetSeriesDataLabelLeaderLines(int seriesIndex, bool showLeaderLines = true, OfficeColor? lineColor = null, OfficeLength? lineWidth = null) #Configures data label leader lines for a series by index.
Parameters
- seriesIndex int
- showLeaderLines bool = true
- lineColor OfficeIMO.OfficeColor? = null
- lineWidth OfficeIMO.OfficeLength? = null
Returns
ExcelChartpublic ExcelChart SetSeriesDataLabelLeaderLines(string seriesName, bool showLeaderLines = true, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, bool ignoreCase = true) #Configures data label leader lines for a series by name.
Parameters
- seriesName string
- showLeaderLines bool = true
- lineColor OfficeIMO.OfficeColor? = null
- lineWidth OfficeIMO.OfficeLength? = null
- ignoreCase bool = true
Returns
ExcelChartpublic ExcelChart SetSeriesDataLabels(int seriesIndex, bool showValue = true, bool showCategoryName = false, bool showSeriesName = false, bool showLegendKey = false, bool showPercent = false, OfficeChartDataLabelPosition? position = null, string? numberFormat = null, bool sourceLinked = false) #Configures data labels for a single series by index.
Parameters
- seriesIndex int
- showValue bool = true
- showCategoryName bool = false
- showSeriesName bool = false
- showLegendKey bool = false
- showPercent bool = false
- position OfficeIMO.Drawing.OfficeChartDataLabelPosition? = null
- numberFormat string? = null
- sourceLinked bool = false
Returns
ExcelChartpublic ExcelChart SetSeriesDataLabels(string seriesName, bool showValue = true, bool showCategoryName = false, bool showSeriesName = false, bool showLegendKey = false, bool showPercent = false, OfficeChartDataLabelPosition? position = null, string? numberFormat = null, bool sourceLinked = false, bool ignoreCase = true) #Configures data labels for a single series by name.
Parameters
- seriesName string
- showValue bool = true
- showCategoryName bool = false
- showSeriesName bool = false
- showLegendKey bool = false
- showPercent bool = false
- position OfficeIMO.Drawing.OfficeChartDataLabelPosition? = null
- numberFormat string? = null
- sourceLinked bool = false
- ignoreCase bool = true
Returns
ExcelChartpublic ExcelChart SetSeriesDataLabelSeparator(int seriesIndex, string? separator) #Sets the separator for data labels in a series by index.
Parameters
- seriesIndex int
- separator string?
Returns
ExcelChartpublic ExcelChart SetSeriesDataLabelSeparator(string seriesName, string? separator, bool ignoreCase = true) #Sets the separator for data labels in a series by name.
Parameters
- seriesName string
- separator string?
- ignoreCase bool = true
Returns
ExcelChartpublic ExcelChart SetSeriesDataLabelSeparatorForPoint(int seriesIndex, int pointIndex, string? separator) #Sets the separator for a specific data label point by series index.
Parameters
- seriesIndex int
- pointIndex int
- separator string?
Returns
ExcelChartpublic ExcelChart SetSeriesDataLabelSeparatorForPoint(string seriesName, int pointIndex, string? separator, bool ignoreCase = true) #Sets the separator for a specific data label point by series name.
Parameters
- seriesName string
- pointIndex int
- separator string?
- ignoreCase bool = true
Returns
ExcelChartpublic ExcelChart SetSeriesDataLabelShapeStyle(int seriesIndex, OfficeColor? fillColor = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, bool noFill = false, bool noLine = false) #Sets data label shape styling for a series by index.
Parameters
- seriesIndex int
- fillColor OfficeIMO.OfficeColor? = null
- lineColor OfficeIMO.OfficeColor? = null
- lineWidth OfficeIMO.OfficeLength? = null
- noFill bool = false
- noLine bool = false
Returns
ExcelChartpublic ExcelChart SetSeriesDataLabelShapeStyle(string seriesName, OfficeColor? fillColor = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, bool noFill = false, bool noLine = false, bool ignoreCase = true) #Sets data label shape styling for a series by name.
Parameters
- seriesName string
- fillColor OfficeIMO.OfficeColor? = null
- lineColor OfficeIMO.OfficeColor? = null
- lineWidth OfficeIMO.OfficeLength? = null
- noFill bool = false
- noLine bool = false
- ignoreCase bool = true
Returns
ExcelChartpublic ExcelChart SetSeriesDataLabelShapeStyleForPoint(int seriesIndex, int pointIndex, OfficeColor? fillColor = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, bool noFill = false, bool noLine = false) #Sets data label shape styling for a specific point by series index.
Parameters
- seriesIndex int
- pointIndex int
- fillColor OfficeIMO.OfficeColor? = null
- lineColor OfficeIMO.OfficeColor? = null
- lineWidth OfficeIMO.OfficeLength? = null
- noFill bool = false
- noLine bool = false
Returns
ExcelChartpublic ExcelChart SetSeriesDataLabelShapeStyleForPoint(string seriesName, int pointIndex, OfficeColor? fillColor = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, bool noFill = false, bool noLine = false, bool ignoreCase = true) #Sets data label shape styling for a specific point by series name.
Parameters
- seriesName string
- pointIndex int
- fillColor OfficeIMO.OfficeColor? = null
- lineColor OfficeIMO.OfficeColor? = null
- lineWidth OfficeIMO.OfficeLength? = null
- noFill bool = false
- noLine bool = false
- ignoreCase bool = true
Returns
ExcelChartpublic ExcelChart SetSeriesDataLabelTemplate(int seriesIndex, ExcelChartDataLabelTemplate template) #Applies a reusable data label template to a series by index.
Parameters
- seriesIndex int
- template OfficeIMO.Excel.ExcelChartDataLabelTemplate
Returns
ExcelChartpublic ExcelChart SetSeriesDataLabelTemplate(string seriesName, ExcelChartDataLabelTemplate template, bool ignoreCase = true) #Applies a reusable data label template to a series by name.
Parameters
- seriesName string
- template OfficeIMO.Excel.ExcelChartDataLabelTemplate
- ignoreCase bool = true
Returns
ExcelChartpublic ExcelChart SetSeriesDataLabelTextStyle(int seriesIndex, OfficeLength? fontSize = null, bool? bold = null, bool? italic = null, OfficeColor? color = null, string? fontFamily = null) #Sets data label text style for a series by index.
Parameters
- seriesIndex int
- fontSize OfficeIMO.OfficeLength? = null
- bold bool? = null
- italic bool? = null
- color OfficeIMO.OfficeColor? = null
- fontFamily string? = null
Returns
ExcelChartpublic ExcelChart SetSeriesDataLabelTextStyleByName(string seriesName, OfficeLength? fontSize = null, bool? bold = null, bool? italic = null, OfficeColor? color = null, string? fontFamily = null, bool ignoreCase = true) #Sets data label text style for a series by name.
Parameters
- seriesName string
- fontSize OfficeIMO.OfficeLength? = null
- bold bool? = null
- italic bool? = null
- color OfficeIMO.OfficeColor? = null
- fontFamily string? = null
- ignoreCase bool = true
Returns
ExcelChartpublic ExcelChart SetSeriesDataLabelTextStyleForPoint(int seriesIndex, int pointIndex, OfficeLength? fontSize = null, bool? bold = null, bool? italic = null, OfficeColor? color = null, string? fontFamily = null) #Sets data label text style for a specific point by series index.
Parameters
- seriesIndex int
- pointIndex int
- fontSize OfficeIMO.OfficeLength? = null
- bold bool? = null
- italic bool? = null
- color OfficeIMO.OfficeColor? = null
- fontFamily string? = null
Returns
ExcelChartpublic ExcelChart SetSeriesDataLabelTextStyleForPointByName(string seriesName, int pointIndex, OfficeLength? fontSize = null, bool? bold = null, bool? italic = null, OfficeColor? color = null, string? fontFamily = null, bool ignoreCase = true) #Sets data label text style for a specific point by series name.
Parameters
- seriesName string
- pointIndex int
- fontSize OfficeIMO.OfficeLength? = null
- bold bool? = null
- italic bool? = null
- color OfficeIMO.OfficeColor? = null
- fontFamily string? = null
- ignoreCase bool = true
Returns
ExcelChartpublic ExcelChart SetSeriesFillColor(int seriesIndex, OfficeColor color) #Sets the fill color for a chart series by index.
Parameters
- seriesIndex int
- color OfficeIMO.OfficeColor
Returns
ExcelChartpublic ExcelChart SetSeriesFillColor(string seriesName, OfficeColor color, bool ignoreCase = true) #Sets the fill color for a chart series by name.
Parameters
- seriesName string
- color OfficeIMO.OfficeColor
- ignoreCase bool = true
Returns
ExcelChartpublic ExcelChart SetSeriesLineColor(int seriesIndex, OfficeColor color, OfficeLength? width = null) #Sets the line color for a chart series by index.
Parameters
- seriesIndex int
- color OfficeIMO.OfficeColor
- width OfficeIMO.OfficeLength? = null
Returns
ExcelChartpublic ExcelChart SetSeriesLineColor(string seriesName, OfficeColor color, OfficeLength? width = null, bool ignoreCase = true) #Sets the line color for a chart series by name.
Parameters
- seriesName string
- color OfficeIMO.OfficeColor
- width OfficeIMO.OfficeLength? = null
- ignoreCase bool = true
Returns
ExcelChartpublic ExcelChart SetSeriesMarker(int seriesIndex, OfficeChartMarkerShape? style = null, OfficeLength? size = null, OfficeColor? fillColor = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null) #Sets the marker style for a chart series by index.
Parameters
- seriesIndex int
- style OfficeIMO.Drawing.OfficeChartMarkerShape? = null
- size OfficeIMO.OfficeLength? = null
- fillColor OfficeIMO.OfficeColor? = null
- lineColor OfficeIMO.OfficeColor? = null
- lineWidth OfficeIMO.OfficeLength? = null
Returns
ExcelChartpublic ExcelChart SetSeriesMarkerByName(string seriesName, OfficeChartMarkerShape? style = null, OfficeLength? size = null, OfficeColor? fillColor = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, bool ignoreCase = true) #Sets the marker style for a chart series by name.
Parameters
- seriesName string
- style OfficeIMO.Drawing.OfficeChartMarkerShape? = null
- size OfficeIMO.OfficeLength? = null
- fillColor OfficeIMO.OfficeColor? = null
- lineColor OfficeIMO.OfficeColor? = null
- lineWidth OfficeIMO.OfficeLength? = null
- ignoreCase bool = true
Returns
ExcelChartpublic ExcelChart SetSeriesNoFill(int seriesIndex, bool noLine = true) #Removes the fill from a chart series and optionally removes its outline.
Parameters
- seriesIndex int
- noLine bool = true
Returns
ExcelChartpublic ExcelChart SetSeriesPointFillColor(int seriesIndex, int pointIndex, OfficeColor color) #Sets the fill color for one point in a chart series by index.
Parameters
- seriesIndex int
- pointIndex int
- color OfficeIMO.OfficeColor
Returns
ExcelChartpublic ExcelChart SetSeriesPointFillColor(string seriesName, int pointIndex, OfficeColor color, bool ignoreCase = true) #Sets the fill color for one point in a chart series by name.
Parameters
- seriesName string
- pointIndex int
- color OfficeIMO.OfficeColor
- ignoreCase bool = true
Returns
ExcelChartpublic ExcelChart SetSeriesTrendline(int seriesIndex, OfficeChartTrendlineType type, int? order = null, int? period = null, double? forward = null, double? backward = null, double? intercept = null, bool displayEquation = false, bool displayRSquared = false, OfficeColor? lineColor = null, OfficeLength? lineWidth = null) #Adds or replaces a trendline for a chart series by index.
Parameters
- seriesIndex int
- type OfficeIMO.Drawing.OfficeChartTrendlineType
- order int? = null
- period int? = null
- forward double? = null
- backward double? = null
- intercept double? = null
- displayEquation bool = false
- displayRSquared bool = false
- lineColor OfficeIMO.OfficeColor? = null
- lineWidth OfficeIMO.OfficeLength? = null
Returns
ExcelChartpublic ExcelChart SetSeriesTrendline(string seriesName, OfficeChartTrendlineType type, int? order = null, int? period = null, double? forward = null, double? backward = null, double? intercept = null, bool displayEquation = false, bool displayRSquared = false, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, bool ignoreCase = true) #Adds or replaces a trendline for a chart series by name.
Parameters
- seriesName string
- type OfficeIMO.Drawing.OfficeChartTrendlineType
- order int? = null
- period int? = null
- forward double? = null
- backward double? = null
- intercept double? = null
- displayEquation bool = false
- displayRSquared bool = false
- lineColor OfficeIMO.OfficeColor? = null
- lineWidth OfficeIMO.OfficeLength? = null
- ignoreCase bool = true
Returns
ExcelChartpublic ExcelChart SetTitle(string title) #Sets the chart title text.
Parameters
- title string
Returns
ExcelChartpublic ExcelChart SetTitleTextStyle(OfficeLength? fontSize = null, bool? bold = null, bool? italic = null, OfficeColor? color = null, string? fontFamily = null) #Sets the chart title text style.
Parameters
- fontSize OfficeIMO.OfficeLength? = null
- bold bool? = null
- italic bool? = null
- color OfficeIMO.OfficeColor? = null
- fontFamily string? = null
Returns
ExcelChartpublic ExcelChart SetValueAxisCrossBetween(OfficeChartAxisCrossBetween between, OfficeChartAxisGroup axisGroup = Primary) #Sets how the value axis crosses between categories.
Parameters
- between OfficeIMO.Drawing.OfficeChartAxisCrossBetween
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
Returns
ExcelChartpublic ExcelChart SetValueAxisCrossing(OfficeChartAxisCrossingPosition crosses, double? crossesAt = null, OfficeChartAxisGroup axisGroup = Primary) #Sets where the value axis crosses the category axis.
Parameters
- crosses OfficeIMO.Drawing.OfficeChartAxisCrossingPosition
- crossesAt double? = null
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
Returns
ExcelChartpublic ExcelChart SetValueAxisDisplayUnits(OfficeChartDisplayUnit unit, bool showLabel = true, OfficeChartAxisGroup axisGroup = Primary) #Sets display units for the value axis.
Parameters
- unit OfficeIMO.Drawing.OfficeChartDisplayUnit
- showLabel bool = true
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
Returns
ExcelChartpublic ExcelChart SetValueAxisDisplayUnits(OfficeChartDisplayUnit unit, string labelText, bool showLabel = true, OfficeChartAxisGroup axisGroup = Primary) #Sets display units for the value axis with custom label text.
Parameters
- unit OfficeIMO.Drawing.OfficeChartDisplayUnit
- labelText string
- showLabel bool = true
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
Returns
ExcelChartpublic ExcelChart SetValueAxisDisplayUnits(double customUnit, bool showLabel = true, OfficeChartAxisGroup axisGroup = Primary) #Sets custom display units for the value axis.
Parameters
- customUnit double
- showLabel bool = true
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
Returns
ExcelChartpublic ExcelChart SetValueAxisDisplayUnits(double customUnit, string labelText, bool showLabel = true, OfficeChartAxisGroup axisGroup = Primary) #Sets custom display units for the value axis with custom label text.
Parameters
- customUnit double
- labelText string
- showLabel bool = true
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
Returns
ExcelChartpublic ExcelChart SetValueAxisGridlines(bool? showMajor = null, bool? showMinor = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, OfficeChartAxisGroup axisGroup = Primary) #Sets value axis gridlines visibility and optional styling.
Parameters
- showMajor bool? = null
- showMinor bool? = null
- lineColor OfficeIMO.OfficeColor? = null
- lineWidth OfficeIMO.OfficeLength? = null
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
Returns
ExcelChartpublic ExcelChart SetValueAxisLabelRotation(double rotationDegrees, OfficeChartAxisGroup axisGroup = Primary) #Sets the value axis label rotation in degrees (-90..90).
Parameters
- rotationDegrees double
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
Returns
ExcelChartpublic ExcelChart SetValueAxisLabelTextStyle(OfficeLength? fontSize = null, bool? bold = null, bool? italic = null, OfficeColor? color = null, string? fontFamily = null, OfficeChartAxisGroup axisGroup = Primary) #Sets the value axis label text style.
Parameters
- fontSize OfficeIMO.OfficeLength? = null
- bold bool? = null
- italic bool? = null
- color OfficeIMO.OfficeColor? = null
- fontFamily string? = null
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
Returns
ExcelChartpublic ExcelChart SetValueAxisLine(OfficeColor? lineColor = null, OfficeLength? lineWidth = null, bool noLine = false, OfficeChartAxisGroup axisGroup = Primary) #Sets value axis line visibility and optional styling.
Parameters
- lineColor OfficeIMO.OfficeColor? = null
- lineWidth OfficeIMO.OfficeLength? = null
- noLine bool = false
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
Returns
ExcelChartpublic ExcelChart SetValueAxisNumberFormat(string formatCode, bool sourceLinked = false) #Sets the value axis number format.
Parameters
- formatCode string
- sourceLinked bool = false
Returns
ExcelChartpublic ExcelChart SetValueAxisNumberFormat(string formatCode, bool sourceLinked, OfficeChartAxisGroup axisGroup) #Sets the value axis number format for the selected axis group.
Parameters
- formatCode string
- sourceLinked bool
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup
Returns
ExcelChartpublic ExcelChart SetValueAxisScale(double? minimum = null, double? maximum = null, double? majorUnit = null, double? minorUnit = null, double? logBase = null, bool? reverseOrder = null, OfficeChartAxisGroup axisGroup = Primary, bool? logScale = null) #Sets value axis scale parameters for the selected axis group.
Parameters
- minimum double? = null
- maximum double? = null
- majorUnit double? = null
- minorUnit double? = null
- logBase double? = null
- reverseOrder bool? = null
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
- logScale bool? = null
Returns
ExcelChartpublic ExcelChart SetValueAxisTickLabelPosition(OfficeChartAxisTickLabelPosition position, OfficeChartAxisGroup axisGroup = Primary) #Sets the value axis tick label position.
Parameters
- position OfficeIMO.Drawing.OfficeChartAxisTickLabelPosition
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
Returns
ExcelChartpublic ExcelChart SetValueAxisTitle(string title) #Sets the value axis title.
Parameters
- title string
Returns
ExcelChartpublic ExcelChart SetValueAxisTitle(string title, OfficeChartAxisGroup axisGroup) #Sets the value axis title for the selected axis group.
Parameters
- title string
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup
Returns
ExcelChartpublic ExcelChart SetValueAxisTitleTextStyle(OfficeLength? fontSize = null, bool? bold = null, bool? italic = null, OfficeColor? color = null, string? fontFamily = null, OfficeChartAxisGroup axisGroup = Primary) #Sets the value axis title text style.
Parameters
- fontSize OfficeIMO.OfficeLength? = null
- bold bool? = null
- italic bool? = null
- color OfficeIMO.OfficeColor? = null
- fontFamily string? = null
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
Returns
ExcelChartpublic OfficeImageExportResult ToImage(ExcelImageExportOptions? options = null, CancellationToken cancellationToken = default) #Renders the chart using the encoding in OfficeImageExportOptions.Format.
Parameters
- options OfficeIMO.Excel.ExcelImageExportOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
OfficeImageExportResultpublic OfficeImageExportResult ToImage(ExcelImageExportOptions? options, out OfficeConversionReport report, CancellationToken cancellationToken = default) #Renders the chart and returns its immutable fidelity report.
Parameters
- options OfficeIMO.Excel.ExcelImageExportOptions?
- report OfficeIMO.OfficeConversionReport
- cancellationToken System.Threading.CancellationToken = default
Returns
OfficeImageExportResultpublic OfficeImageExportResult ToImage(OfficeImageExportFormat format, ExcelImageExportOptions? options = null, CancellationToken cancellationToken = default) #Exports this chart through the shared dependency-free chart renderer.
Parameters
- format OfficeIMO.Drawing.OfficeImageExportFormat
- Target image format.
- options OfficeIMO.Excel.ExcelImageExportOptions? = null
- Shared Excel image-export settings.
- cancellationToken System.Threading.CancellationToken = default
- Token used to cancel rendering.
Returns
OfficeImageExportResult The encoded chart image and any fidelity diagnostics.public async Task<OfficeImageExportResult> ToImageAsync(ExcelImageExportOptions? options = null, CancellationToken cancellationToken = default) #Renders the chart with cancellation and returns the encoded image and its diagnostics.
Parameters
- options OfficeIMO.Excel.ExcelImageExportOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
Task<OfficeImageExportResult>public bool TryGetData(out ExcelChartData data) #Tries to read the chart data from the chart's source range.
Parameters
- data OfficeIMO.Excel.ExcelChartData
Returns
boolpublic bool TryGetSnapshot(out ExcelChartInfo snapshot) #Tries to create a dependency-free snapshot for rendering/export consumers.
Parameters
- snapshot OfficeIMO.Excel.ExcelChartInfo
Returns
boolpublic ExcelChart UpdateData(ExcelChartData data, ExcelChartDataRange? dataRange = null, bool writeToSheet = true) #Updates the chart data (series and categories).
Parameters
- data OfficeIMO.Excel.ExcelChartData
- dataRange OfficeIMO.Excel.ExcelChartDataRange? = null
- writeToSheet bool = true
Returns
ExcelChartpublic ExcelChart UpdateData<T>(IEnumerable<T?> items, Func<T?, string> categorySelector, params ExcelChartSeriesDefinition<T?>[] seriesDefinitions) #Updates the chart data using selectors.
Type Parameters
- T
Parameters
- items System.Collections.Generic.IEnumerable<T?>
- categorySelector System.Func<T?, string>
- seriesDefinitions OfficeIMO.Excel.ExcelChartSeriesDefinition<T?>[]
Returns
ExcelChartInherited Methods
Properties
public string Name { get; set; } #Gets or sets the chart name (non-visual drawing name).
public ExcelChartDataRange? DataRange { get; } #Gets the chart data range when it is known.
public int DrawingOrder { get; } #Gets this chart anchor's zero-based order in the worksheet drawing layer.
public bool IsPivotChart { get; } #Gets whether the chart declares a pivot table source.
public string? PivotTableName { get; } #Gets the pivot table name used as this chart's pivot source, if present.
public OfficeChartRadialLayout RadialLayout { get; } #Native pie rotation and doughnut hole geometry, with native defaults when unspecified.
Extension Methods
public static ExcelChart ApplyDashboardPreset(ExcelChart chart, ExcelDashboardChartPreset preset = Comparison, int? styleId = null, int? colorStyleId = null) #Applies a dashboard preset's style, legend and data labels to an existing chart.
Parameters
- chart OfficeIMO.Excel.ExcelChart
- Chart to restyle.
- preset OfficeIMO.Excel.Reports.ExcelDashboardChartPreset = Comparison
- The dashboard appearance preset.
- styleId int? = null
- Optional chart style override.
- colorStyleId int? = null
- Optional chart color-style override.