Search Results for

    Show / Hide Table of Contents

    Class Chart

    Represents a chart element within the document.

    Inheritance
    System.Object
    ContentElement
    Chart
    Implements
    IronSoftware.Abstractions.IDocumentElement
    IronSoftware.IDocumentObject
    System.ICloneable
    Inherited Members
    ContentElement.Status
    ContentElement.Replace(ContentElement)
    ContentElement.Remove()
    ContentElement.GetIndex<T>()
    ContentElement.Clone()
    ContentElement.CloneObject()
    ContentElement.Parent
    ContentElement.ObjNum
    ContentElement.PageIndex
    ContentElement.DocumentId
    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

    Inherited members

    Status
    Replace(ContentElement)
    Remove()
    GetIndex<T>()
    Clone()
    CloneObject()
    Parent
    ObjNum
    PageIndex
    DocumentId
    ☀
    ☾
    Downloads
    • Download with NuGet
    • Start for Free
    In This Article
    Back to top
    Install with NuGet
    Want to deploy IronWord to a live project for FREE?
    What’s included?
    30 days of fully-functional product
    Test and share in a live environment
    No watermarks in production
    Get your free 30-day Trial Key instantly.
    No credit card or account creation required
    Your Trial License Key has been emailed to you.
    Download IronWord free to apply
    your Trial Licenses Key
    Install with NuGet View Licenses
    Licenses from $499. Have a question? Get in touch.