Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ExcelChartData

OfficeIMO.Excel

Namespace
OfficeIMO.Excel
Assembly
OfficeIMO.Excel
Source revision
0eef6a5756b9 with working tree changes
Modifiers
sealed

In-memory chart data for Excel charts.

Inheritance

  • object
  • ExcelChartData

Usage

Explore 10 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.

Accepted by parameters 6

Constructors

public ExcelChartData(IEnumerable<string> categories, IEnumerable<ExcelChartSeries> series) #

Creates chart data from the provided categories and series.

Parameters

categories System.Collections.Generic.IEnumerable<string> required
series System.Collections.Generic.IEnumerable<OfficeIMO.Excel.ExcelChartSeries> required

Methods

public static ExcelChartData CreateDefault() #

Creates a sample chart dataset.

public static ExcelChartData From<T>(IEnumerable<T?> items, Func<T?, string> categorySelector, params ExcelChartSeriesDefinition<T?>[] seriesDefinitions) #

Builds chart data from a sequence of items and series definitions.

Type Parameters

T

Parameters

items System.Collections.Generic.IEnumerable<T?> required
categorySelector System.Func<T?, string> required
seriesDefinitions OfficeIMO.Excel.ExcelChartSeriesDefinition<T?>[] required

Properties

public IReadOnlyList<string> Categories { get; } #

Gets the category labels for the chart.

public IReadOnlyList<ExcelChartSeries> Series { get; } #

Gets the chart series collection.