menu

ASP.NET MVC - EJ2

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

    Show / Hide Table of Contents

    Class StockChartStockChartLegendSettingsBuilder

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

    Constructors

    StockChartStockChartLegendSettingsBuilder()

    Declaration
    public StockChartStockChartLegendSettingsBuilder()

    StockChartStockChartLegendSettingsBuilder(StockChartStockChartLegendSettings)

    Declaration
    public StockChartStockChartLegendSettingsBuilder(StockChartStockChartLegendSettings model)
    Parameters
    Type Name Description
    StockChartStockChartLegendSettings model

    Methods

    Alignment(Alignment)

    Legend in stock chart can be aligned as follows: Near: Aligns the legend to the left of the stock chart. Center: Aligns the legend to the center of the stock chart. Far: Aligns the legend to the right of the stock chart.

    Declaration
    public StockChartStockChartLegendSettingsBuilder Alignment(Alignment value)
    Parameters
    Type Name Description
    Alignment value
    Returns
    Type
    StockChartStockChartLegendSettingsBuilder

    Background(String)

    The background color of the legend that accepts value in hex and rgba as a valid CSS color string in stock chart.

    Declaration
    public StockChartStockChartLegendSettingsBuilder Background(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    StockChartStockChartLegendSettingsBuilder

    Border(StockChartLegendBorder)

    Options to customize the border of the legend.

    Declaration
    public StockChartStockChartLegendSettingsBuilder Border(StockChartLegendBorder value)
    Parameters
    Type Name Description
    StockChartLegendBorder value
    Returns
    Type
    StockChartStockChartLegendSettingsBuilder

    Border(Action<StockChartBorderBuilder>)

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

    ContainerPadding(StockChartContainerPadding)

    Options to customize left, right, top and bottom padding for legend container of the stock chart.

    Declaration
    public StockChartStockChartLegendSettingsBuilder ContainerPadding(StockChartContainerPadding value)
    Parameters
    Type Name Description
    StockChartContainerPadding value
    Returns
    Type
    StockChartStockChartLegendSettingsBuilder

    ContainerPadding(Action<StockChartContainerPaddingBuilder>)

    Declaration
    public StockChartStockChartLegendSettingsBuilder ContainerPadding(Action<StockChartContainerPaddingBuilder> containerPadding)
    Parameters
    Type Name Description
    System.Action<StockChartContainerPaddingBuilder> containerPadding
    Returns
    Type
    StockChartStockChartLegendSettingsBuilder

    Description(String)

    Description for legends in stock chart.

    Declaration
    public StockChartStockChartLegendSettingsBuilder Description(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    StockChartStockChartLegendSettingsBuilder

    EnablePages(Boolean)

    If set to true, legend will be visible using pages in stock chart.

    Declaration
    public StockChartStockChartLegendSettingsBuilder EnablePages(bool value)
    Parameters
    Type Name Description
    System.Boolean value
    Returns
    Type
    StockChartStockChartLegendSettingsBuilder

    Height(String)

    The height of the legend in pixels.

    Declaration
    public StockChartStockChartLegendSettingsBuilder Height(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    StockChartStockChartLegendSettingsBuilder

    IsInversed(Boolean)

    If set to true, legend will be Reversed in stock chart.

    Declaration
    public StockChartStockChartLegendSettingsBuilder IsInversed(bool value)
    Parameters
    Type Name Description
    System.Boolean value
    Returns
    Type
    StockChartStockChartLegendSettingsBuilder

    ItemPadding(Double)

    Option to customize the padding between legend items.

    Declaration
    public StockChartStockChartLegendSettingsBuilder ItemPadding(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    StockChartStockChartLegendSettingsBuilder

    Location(StockChartLocation)

    Specifies the location of the legend, relative to the Stock chart. If x is 20, legend moves by 20 pixels to the right of the Stock chart. It requires the position to be Custom.

    Declaration
    public StockChartStockChartLegendSettingsBuilder Location(StockChartLocation value)
    Parameters
    Type Name Description
    StockChartLocation value
    Returns
    Type
    StockChartStockChartLegendSettingsBuilder

    Location(Action<StockChartLocationBuilder>)

    Declaration
    public StockChartStockChartLegendSettingsBuilder Location(Action<StockChartLocationBuilder> location)
    Parameters
    Type Name Description
    System.Action<StockChartLocationBuilder> location
    Returns
    Type
    StockChartStockChartLegendSettingsBuilder

    Margin(StockChartMargin)

    Options to customize left, right, top and bottom margins of the stock chart.

    Declaration
    public StockChartStockChartLegendSettingsBuilder Margin(StockChartMargin value)
    Parameters
    Type Name Description
    StockChartMargin value
    Returns
    Type
    StockChartStockChartLegendSettingsBuilder

    Margin(Action<StockChartMarginBuilder>)

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

    MaximumTitleWidth(Double)

    maximum width for the legend title in stock chart.

    Declaration
    public StockChartStockChartLegendSettingsBuilder MaximumTitleWidth(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    StockChartStockChartLegendSettingsBuilder

    Mode(LegendMode)

    Mode of legend items. Series: Legend items generated based on series count. Point: Legend items generated based on unique data points. Range: Legend items generated based on range color mapping property. Gradient: Single linear bar generated based on range color mapping property. This property is applicable for chart component only.

    Declaration
    public StockChartStockChartLegendSettingsBuilder Mode(LegendMode value)
    Parameters
    Type Name Description
    LegendMode value
    Returns
    Type
    StockChartStockChartLegendSettingsBuilder

    Opacity(Double)

    Opacity of the legend in stock chart.

    Declaration
    public StockChartStockChartLegendSettingsBuilder Opacity(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    StockChartStockChartLegendSettingsBuilder

    Padding(Double)

    Option to customize the padding around the legend items.

    Declaration
    public StockChartStockChartLegendSettingsBuilder Padding(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    StockChartStockChartLegendSettingsBuilder

    Position(LegendPosition)

    Position of the legend in the Stock chart are, Auto: Places the legend based on area type. Top: Displays the legend at the top of the stock chart. Left: Displays the legend at the left of the stock chart. Bottom: Displays the legend at the bottom of the stock chart. Right: Displays the legend at the right of the stock chart. Custom: Displays the legend based on the given x and y values.

    Declaration
    public StockChartStockChartLegendSettingsBuilder Position(LegendPosition value)
    Parameters
    Type Name Description
    LegendPosition value
    Returns
    Type
    StockChartStockChartLegendSettingsBuilder

    ShapeHeight(Double)

    Shape height of the legend in pixels.

    Declaration
    public StockChartStockChartLegendSettingsBuilder ShapeHeight(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    StockChartStockChartLegendSettingsBuilder

    ShapePadding(Double)

    Padding between the legend shape and text in stock chart.

    Declaration
    public StockChartStockChartLegendSettingsBuilder ShapePadding(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    StockChartStockChartLegendSettingsBuilder

    ShapeWidth(Double)

    Shape width of the legend in pixels.

    Declaration
    public StockChartStockChartLegendSettingsBuilder ShapeWidth(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    StockChartStockChartLegendSettingsBuilder

    TabIndex(Double)

    TabIndex value for the legend in stock chart.

    Declaration
    public StockChartStockChartLegendSettingsBuilder TabIndex(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    StockChartStockChartLegendSettingsBuilder

    TextStyle(StockChartLegendTextStyle)

    Options to customize the legend text.

    Declaration
    public StockChartStockChartLegendSettingsBuilder TextStyle(StockChartLegendTextStyle value)
    Parameters
    Type Name Description
    StockChartLegendTextStyle value
    Returns
    Type
    StockChartStockChartLegendSettingsBuilder

    TextStyle(Action<StockChartFontBuilder>)

    Declaration
    public StockChartStockChartLegendSettingsBuilder TextStyle(Action<StockChartFontBuilder> textStyle)
    Parameters
    Type Name Description
    System.Action<StockChartFontBuilder> textStyle
    Returns
    Type
    StockChartStockChartLegendSettingsBuilder

    Title(String)

    Title for legends in stock chart.

    Declaration
    public StockChartStockChartLegendSettingsBuilder Title(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    StockChartStockChartLegendSettingsBuilder

    TitlePosition(LegendTitlePosition)

    legend title position in stock chart.

    Declaration
    public StockChartStockChartLegendSettingsBuilder TitlePosition(LegendTitlePosition value)
    Parameters
    Type Name Description
    LegendTitlePosition value
    Returns
    Type
    StockChartStockChartLegendSettingsBuilder

    TitleStyle(StockChartLegendTitleStyle)

    Options to customize the legend title in stock chart.

    Declaration
    public StockChartStockChartLegendSettingsBuilder TitleStyle(StockChartLegendTitleStyle value)
    Parameters
    Type Name Description
    StockChartLegendTitleStyle value
    Returns
    Type
    StockChartStockChartLegendSettingsBuilder

    TitleStyle(Action<StockChartFontBuilder>)

    Declaration
    public StockChartStockChartLegendSettingsBuilder TitleStyle(Action<StockChartFontBuilder> titleStyle)
    Parameters
    Type Name Description
    System.Action<StockChartFontBuilder> titleStyle
    Returns
    Type
    StockChartStockChartLegendSettingsBuilder

    ToggleVisibility(Boolean)

    If set to true, series' visibility collapses based on the legend visibility in stock chart.

    Declaration
    public StockChartStockChartLegendSettingsBuilder ToggleVisibility(bool value)
    Parameters
    Type Name Description
    System.Boolean value
    Returns
    Type
    StockChartStockChartLegendSettingsBuilder

    Visible(Boolean)

    If set to true, legend will be visible.

    Declaration
    public StockChartStockChartLegendSettingsBuilder Visible(bool value)
    Parameters
    Type Name Description
    System.Boolean value
    Returns
    Type
    StockChartStockChartLegendSettingsBuilder

    Width(String)

    The width of the legend in pixels.

    Declaration
    public StockChartStockChartLegendSettingsBuilder Width(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    StockChartStockChartLegendSettingsBuilder
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved