menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ChartArea - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ChartArea

    Provides options to customize the chart area.

    Inheritance
    System.Object
    ChartSubComponent
    ChartArea
    Inherited Members
    ChartSubComponent.BuildRenderTree(RenderTreeBuilder)
    ChartSubComponent.ChildContent
    ChartSubComponent.Dispose(Boolean)
    Namespace: Syncfusion.Blazor.Charts
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class ChartArea : ChartSubComponent, ISubcomponentTracker

    Constructors

    ChartArea()

    Declaration
    public ChartArea()

    Properties

    Background

    Gets or sets the background of the chart area.

    Declaration
    public string Background { get; set; }
    Property Value
    Type Description
    System.String

    A string representing the background color of the chart area. The default value is "transparent".

    Remarks

    Accepts values in hex or rgba as valid CSS color string.

    BackgroundImage

    Gets or sets the background image location or URL of the chart area.

    Declaration
    public string BackgroundImage { get; set; }
    Property Value
    Type Description
    System.String

    A string representing the background image location or URL of the chart area. The default value is null.

    Remarks

    This property accepts a value as a URL link or location of an image.

    Border

    Gets or sets an instance of ChartAreaBorder which controls the customization of the chart area border color and width.

    Declaration
    public ChartAreaBorder Border { get; set; }
    Property Value
    Type Description
    ChartAreaBorder

    An instance of ChartAreaBorder. The default value is a new instance of ChartAreaBorder.

    Remarks

    This property can be used to customize the color and width of the chart area border.

    Opacity

    Gets or sets the opacity for the chart area background.

    Declaration
    public double Opacity { get; set; }
    Property Value
    Type Description
    System.Double

    A double value representing the opacity for the chart area background. The default value is 1.

    Remarks

    Accepts values in numerical form from 0 to 1.

    Width

    Gets or sets the width for the chart area.

    Declaration
    public string Width { get; set; }
    Property Value
    Type Description
    System.String

    A string specifying the width for the chart area. The default value is null.

    Remarks

    Accepts values in percentage or in pixels.

    Methods

    OnInitialized()

    Declaration
    protected override void OnInitialized()

    OnParametersSet()

    Declaration
    protected override void OnParametersSet()
    Overrides
    ChartSubComponent.OnParametersSet()
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved