menu

ASP.NET MVC - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ChartAreaBuilder - ASP.NETMVC-EJ2 API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ChartAreaBuilder

    Inheritance
    System.Object
    Syncfusion.EJ2.ControlBuilder
    ChartAreaBuilder
    Namespace: Syncfusion.EJ2.Charts
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class ChartAreaBuilder : ControlBuilder

    Constructors

    ChartAreaBuilder()

    Declaration
    public ChartAreaBuilder()

    ChartAreaBuilder(ChartArea)

    Declaration
    public ChartAreaBuilder(ChartArea model)
    Parameters
    Type Name Description
    ChartArea model

    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
    Type
    ChartAreaBuilder

    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
    Type
    ChartAreaBuilder

    Border(ChartBorder)

    Options to customize the border of the chart area.

    Declaration
    public ChartAreaBuilder Border(ChartBorder value)
    Parameters
    Type Name Description
    ChartBorder value
    Returns
    Type
    ChartAreaBuilder

    Border(Action<ChartBorderBuilder>)

    Declaration
    public ChartAreaBuilder Border(Action<ChartBorderBuilder> border)
    Parameters
    Type Name Description
    System.Action<ChartBorderBuilder> border
    Returns
    Type
    ChartAreaBuilder

    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
    Type Name Description
    ChartAreaMargin value
    Returns
    Type
    ChartAreaBuilder

    Margin(Action<ChartMarginBuilder>)

    Declaration
    public ChartAreaBuilder Margin(Action<ChartMarginBuilder> margin)
    Parameters
    Type Name Description
    System.Action<ChartMarginBuilder> margin
    Returns
    Type
    ChartAreaBuilder

    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
    Type
    ChartAreaBuilder

    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
    Type
    ChartAreaBuilder
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved