Class ChartAreaBuilder
Inheritance
System.Object
Syncfusion.EJ2.ControlBuilder
ChartAreaBuilder
Assembly: Syncfusion.EJ2.dll
Syntax
public class ChartAreaBuilder : ControlBuilder
Constructors
ChartAreaBuilder()
Declaration
public ChartAreaBuilder()
ChartAreaBuilder(ChartArea)
Declaration
public ChartAreaBuilder(ChartArea model)
Parameters
Methods
Background(String)
The background
property accepts both hex color codes and rgba color values for customizing the chart area's background.
Declaration
public ChartAreaBuilder Background(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
BackgroundImage(String)
The background image of the chart area, specified as a URL or local image path.
Declaration
public ChartAreaBuilder BackgroundImage(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
Border(ChartBorder)
Options to customize the border of the chart area.
Declaration
public ChartAreaBuilder Border(ChartBorder value)
Parameters
Returns
Border(Action<ChartBorderBuilder>)
Declaration
public ChartAreaBuilder Border(Action<ChartBorderBuilder> border)
Parameters
Returns
Margin(ChartAreaMargin)
Defines the margin options for the chart area, specifying the space between the chart container and the chart area.
The margin object can customize the left, right, top, and bottom margins.
Declaration
public ChartAreaBuilder Margin(ChartAreaMargin value)
Parameters
Returns
Margin(Action<ChartMarginBuilder>)
Declaration
public ChartAreaBuilder Margin(Action<ChartMarginBuilder> margin)
Parameters
Returns
Opacity(Double)
The opacity
property controls the transparency of the background of the chart area.
Declaration
public ChartAreaBuilder Opacity(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
Width(String)
Defines the width of the chart area element.
Accepts values in percentage
or pixels
.
Declaration
public ChartAreaBuilder Width(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns