Class Chart
Represents a chart element within the document.
Implements
IronSoftware.Abstractions.IDocumentElement
IronSoftware.IDocumentObject
System.ICloneable
Inherited Members
Namespace: IronWord.Models
Assembly: IronWord.dll
Syntax
public class Chart : ContentElement, IDocumentElement, IDocumentObject, ICloneable
Constructors
Chart()
Initializes a new instance of the Chart class.
Declaration
public Chart()
Chart(ChartType, String)
Initializes a new instance of the Chart class with the specified type and optional title.
Declaration
public Chart(ChartType chartType, string title = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ChartType | chartType | The type of the chart (e.g., Bar, Line, Pie). |
| System.String | title | The title of the chart (optional). |
Properties
AxisConfig
Gets or sets the chart's axis configuration.
Declaration
public AxisConfiguration AxisConfig { get; set; }
Property Value
| Type | Description |
|---|---|
| AxisConfiguration |
DataSource
Gets or sets the data source for the chart.
Declaration
public ChartDataSource DataSource { get; set; }
Property Value
| Type | Description |
|---|---|
| ChartDataSource |
HasLegend
Gets or sets a value indicating whether the chart has a legend.
Declaration
public bool HasLegend { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Style
Gets or sets the chart's visual style and themes.
Declaration
public ChartStyle Style { get; set; }
Property Value
| Type | Description |
|---|---|
| ChartStyle |
Title
Gets or sets the title of the chart.
Declaration
public string Title { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Type
Gets or sets the type of the chart (e.g., Bar, Line, Pie).
Declaration
public ChartType Type { get; set; }
Property Value
| Type | Description |
|---|---|
| ChartType |
Implements
IronSoftware.Abstractions.IDocumentElement
IronSoftware.IDocumentObject
System.ICloneable