Class ChartArea
Inheritance
System.Object
Syncfusion.EJ2.EJTagHelper
ChartArea
Namespace: Syncfusion.EJ2.Charts
Assembly: Syncfusion.EJ2.dll
Syntax
public class ChartArea : EJTagHelper
Constructors
ChartArea()
Declaration
public ChartArea()
Properties
Background
The background
property accepts both hex color codes and rgba color values for customizing the chart area's background.
Declaration
public string Background { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is "transparent" |
BackgroundImage
The background image of the chart area, specified as a URL or local image path.
Declaration
public string BackgroundImage { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |
Border
Options to customize the border of the chart area.
Declaration
public ChartBorder Border { get; set; }
Property Value
Type | Description |
---|---|
ChartBorder | The default value is null |
ContentTemplate
To get or set value for ContentTemplate.
Declaration
public MvcTemplate<object> ContentTemplate { get; set; }
Property Value
Type |
---|
Syncfusion.EJ2.MvcTemplate<System.Object> |
Opacity
The opacity
property controls the transparency of the background of the chart area.
Declaration
public double Opacity { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 1 |
Width
Defines the width of the chart area element.
Accepts values in percentage
or pixels
.
Declaration
public string Width { get; set; }
Property Value
Type | Description |
---|---|
System.String | The default value is null |