Class ChartArea
Options to customize the ChartArea of the chart.
Inherited Members
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 and rgba as a 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 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 and in pixels.
Methods
OnInitialized()
Declaration
protected override void OnInitialized()
OnParametersSet()
Declaration
protected override void OnParametersSet()