OfficeSeries
OfficeIMO
Dependency-free chart series values used by shared OfficeIMO visual renderers.
Inheritance
- object
- OfficeSeries
Usage
Explore 9 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 8
- Property OfficeChartData.Series
- Method OfficeSeries.CreateBubble
- Method OfficeSeries.From``2
- Method OfficeSeries.WithLegendVisibility
- Method OfficeSeries.WithPointExplosions
- Method OfficeSeries.WithPointStyles
- Method OfficeSeries.WithSeriesStyle
- Method OfficeSeries.WithTrendline
Accepted by parameters 1
- Constructor OfficeChartData.OfficeChartData
Constructors
public OfficeSeries(string name, IEnumerable<double> values) #Initializes a chart series snapshot.
Parameters
- name string
- Display name for the series.
- values System.Collections.Generic.IEnumerable<double>
- Values aligned with the chart categories.
public OfficeSeries(string name, IEnumerable<double> values, IEnumerable<double>? xValues) #Initializes a chart series snapshot with optional numeric X-axis values for scatter charts.
Parameters
- name string
- Display name for the series.
- values System.Collections.Generic.IEnumerable<double>
- Values aligned with the chart categories or X-axis values.
- xValues System.Collections.Generic.IEnumerable<double>?
- Optional numeric X-axis values for this series.
public OfficeSeries(string name, IEnumerable<double> values, IEnumerable<double>? xValues, OfficeColor? color) #Initializes a chart series snapshot with optional numeric X-axis values and source style metadata.
Parameters
- name string
- Display name for the series.
- values System.Collections.Generic.IEnumerable<double>
- Values aligned with the chart categories or X-axis values.
- xValues System.Collections.Generic.IEnumerable<double>?
- Optional numeric X-axis values for this series.
- color OfficeIMO.OfficeColor?
- Optional source-defined series color.
public OfficeSeries(string name, IEnumerable<double> values, IEnumerable<double>? xValues, OfficeColor? color, IEnumerable<OfficeColor?>? pointColors) #Initializes a chart series snapshot with optional source style metadata.
Parameters
- name string
- Display name for the series.
- values System.Collections.Generic.IEnumerable<double>
- Values aligned with the chart categories or X-axis values.
- xValues System.Collections.Generic.IEnumerable<double>?
- Optional numeric X-axis values for this series.
- color OfficeIMO.OfficeColor?
- Optional source-defined series color.
- pointColors System.Collections.Generic.IEnumerable<OfficeIMO.OfficeColor?>?
- Optional source-defined colors aligned with individual values.
public OfficeSeries(string name, IEnumerable<double> values, IEnumerable<double>? xValues, OfficeColor? color, IEnumerable<OfficeColor?>? pointColors, bool showMarkers, bool showInLegend = true, bool connectLine = true, OfficeLength? markerSize = null, OfficeChartMarkerShape? markerShape = null, OfficeColor? markerOutlineColor = null, OfficeLength? markerOutlineWidth = null, OfficeLength? strokeWidth = null, OfficeStrokeDashStyle? strokeDashStyle = null, OfficeChartType? renderKind = null, OfficeChartAxisGroup axisGroup = Primary) #Initializes a chart series snapshot with optional source style metadata and marker visibility.
Parameters
- name string
- Display name for the series.
- values System.Collections.Generic.IEnumerable<double>
- Values aligned with the chart categories or X-axis values.
- xValues System.Collections.Generic.IEnumerable<double>?
- Optional numeric X-axis values for this series.
- color OfficeIMO.OfficeColor?
- Optional source-defined series color.
- pointColors System.Collections.Generic.IEnumerable<OfficeIMO.OfficeColor?>?
- Optional source-defined colors aligned with individual values.
- showMarkers bool
- Whether this series should render markers when the chart layout enables them.
- showInLegend bool = true
- Whether this series should appear in rendered legends.
- connectLine bool = true
- Whether this series should render connecting line segments when the chart family supports them.
- markerSize OfficeIMO.OfficeLength? = null
- Optional physical marker diameter, greater than zero. Null uses the renderer or native format default.
- markerShape OfficeIMO.Drawing.OfficeChartMarkerShape? = null
- Optional source-defined marker shape.
- markerOutlineColor OfficeIMO.OfficeColor? = null
- Optional source-defined marker outline color.
- markerOutlineWidth OfficeIMO.OfficeLength? = null
- Optional source-defined marker outline physical width, greater than zero and at most 1584 points.
- strokeWidth OfficeIMO.OfficeLength? = null
- Optional source-defined series stroke physical width, greater than zero and at most 1584 points.
- strokeDashStyle OfficeIMO.Drawing.OfficeStrokeDashStyle? = null
- Optional source-defined series stroke dash style.
- renderKind OfficeIMO.OfficeChartType? = null
- Optional per-series chart kind used by mixed/combo chart renderers.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
- Primary or secondary value axis used by combo chart renderers.
Methods
public static OfficeSeries CreateBubble(string name, IEnumerable<double> xValues, IEnumerable<double> yValues, IEnumerable<double> bubbleSizes, OfficeColor? color = null, IEnumerable<OfficeColor?>? pointColors = null, bool showInLegend = true, OfficeColor? markerOutlineColor = null, OfficeLength? markerOutlineWidth = null, bool showMarkerOutline = true) #Creates a bubble-chart series with explicit control over whether bubble outlines are rendered.
Parameters
- name string
- Display name for the series.
- xValues System.Collections.Generic.IEnumerable<double>
- Numeric X-axis values.
- yValues System.Collections.Generic.IEnumerable<double>
- Numeric Y-axis values.
- bubbleSizes System.Collections.Generic.IEnumerable<double>
- Non-negative bubble sizes aligned with the X/Y values.
- color OfficeIMO.OfficeColor? = null
- Optional source-defined series color.
- pointColors System.Collections.Generic.IEnumerable<OfficeIMO.OfficeColor?>? = null
- Optional source-defined colors aligned with individual bubbles.
- showInLegend bool = true
- Whether this series should appear in rendered legends.
- markerOutlineColor OfficeIMO.OfficeColor? = null
- Optional source-defined bubble outline color.
- markerOutlineWidth OfficeIMO.OfficeLength? = null
- Optional source-defined bubble outline physical width, greater than zero and at most 1584 points.
- showMarkerOutline bool = true
- Whether the bubble outline should be rendered.
Returns
OfficeSeriespublic static OfficeSeries From<T, TValue>(IEnumerable<T?> data, Expression<Func<T?, TValue?>> value, string? name = null) #Creates chart values from a numeric selector. A direct property selector supplies its own series name.
Type Parameters
- T
- TValue
Parameters
- data System.Collections.Generic.IEnumerable<T?>
- value System.Linq.Expressions.Expression<System.Func<T?, TValue?>>
- name string? = null
Returns
OfficeSeriespublic OfficeSeries WithLegendVisibility(bool showInLegend) #Returns a copy with the requested legend visibility and unchanged data and appearance.
Parameters
- showInLegend bool
Returns
OfficeSeriespublic OfficeSeries WithPointExplosions(IEnumerable<int>? pointExplosions) #Returns a copy with an explosion percentage for each pie or doughnut point. Null leaves native point offsets unchanged during data updates.
Parameters
- pointExplosions System.Collections.Generic.IEnumerable<int>?
Returns
OfficeSeriespublic OfficeSeries WithPointStyles(IEnumerable<OfficeChartPointStyle?>? pointStyles) #Returns a copy with aligned immutable point styles. Null removes shared style metadata; null entries inherit the series/theme appearance and any legacy PointColors entry.
Parameters
- pointStyles System.Collections.Generic.IEnumerable<OfficeIMO.Drawing.OfficeChartPointStyle?>?
Returns
OfficeSeriespublic OfficeSeries WithSeriesStyle(OfficeChartPointStyle? style) #Returns a copy with independent series fill and outline paint. Null restores inherited paint.
Parameters
- style OfficeIMO.Drawing.OfficeChartPointStyle?
Returns
OfficeSeriespublic OfficeSeries WithTrendline(OfficeChartTrendline? trendline) #Returns a copy with the trendline replaced; null removes it.
Parameters
- trendline OfficeIMO.Drawing.OfficeChartTrendline?
Returns
OfficeSeriesInherited Methods
Properties
public IReadOnlyList<double> Values { get; } #Series values aligned with chart categories.
public IReadOnlyList<double>? XValues { get; } #Optional per-series numeric X-axis values for scatter charts.
public IReadOnlyList<double>? BubbleSizes { get; } #Optional per-point sizes for bubble charts.
public IReadOnlyList<OfficeColor?>? PointColors { get; } #Optional source-defined colors aligned with individual series values.
public OfficeChartPointStyle? SeriesStyle { get; private set; } #Optional series fill and outline overrides, independent of the legacy palette colour.
public IReadOnlyList<OfficeChartPointStyle?>? PointStyles { get; private set; } #Optional point styles aligned with the values; explicit fills override PointColors.
public IReadOnlyList<int>? PointExplosions { get; private set; } #Optional pie or doughnut slice offsets, as percentages of the slice radius.
public OfficeChartTrendline? Trendline { get; private set; } #Optional trendline fitted to this series.
public bool ShowMarkers { get; } #Gets the source marker preference. Constructors without a visibility argument use the theme's line-marker defaults; explicit visibility and point styling take precedence.
public OfficeLength? MarkerSize { get; } #Optional physical marker diameter, greater than zero. Null uses the renderer or native format default.
public OfficeChartMarkerShape? MarkerShape { get; } #Optional source-defined marker shape.
public OfficeColor? MarkerOutlineColor { get; } #Optional source-defined marker outline color.
public OfficeLength? MarkerOutlineWidth { get; } #Optional source-defined marker outline physical width, greater than zero and at most 1584 points.
public bool ShowMarkerOutline { get; } #Whether the marker or bubble outline should be rendered.
public OfficeLength? StrokeWidth { get; } #Optional source-defined series stroke physical width, greater than zero and at most 1584 points.
public OfficeStrokeDashStyle? StrokeDashStyle { get; } #Optional source-defined series stroke dash style.
public OfficeChartType? RenderKind { get; } #Optional per-series chart kind for mixed/combo chart rendering.
public OfficeChartAxisGroup AxisGroup { get; } #Primary or secondary value axis used by combo chart renderers.
public bool ShowInLegend { get; } #Whether this series should appear in rendered legends.
public bool ConnectLine { get; } #Whether this series should render connecting line segments when the chart family supports them.
Fields
public const int MaximumPointExplosionPercent #Largest pie or doughnut point explosion that the shared renderer supports.
400