menu

ASP.NET MVC - EJ2

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

    Show / Hide Table of Contents

    Class AccumulationChartLegendSettingsBuilder

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

    Constructors

    AccumulationChartLegendSettingsBuilder()

    Declaration
    public AccumulationChartLegendSettingsBuilder()

    AccumulationChartLegendSettingsBuilder(AccumulationChartLegendSettings)

    Declaration
    public AccumulationChartLegendSettingsBuilder(AccumulationChartLegendSettings model)
    Parameters
    Type Name Description
    AccumulationChartLegendSettings model

    Methods

    Accessibility(AccumulationChartLegendAccessibility)

    Options to improve accessibility for legend elements.

    Declaration
    public AccumulationChartLegendSettingsBuilder Accessibility(AccumulationChartLegendAccessibility value)
    Parameters
    Type Name Description
    AccumulationChartLegendAccessibility value
    Returns
    Type
    AccumulationChartLegendSettingsBuilder

    Accessibility(Action<AccumulationChartAccessibilityBuilder>)

    Declaration
    public AccumulationChartLegendSettingsBuilder Accessibility(Action<AccumulationChartAccessibilityBuilder> accessibility)
    Parameters
    Type Name Description
    System.Action<AccumulationChartAccessibilityBuilder> accessibility
    Returns
    Type
    AccumulationChartLegendSettingsBuilder

    Alignment(Alignment)

    Defines the alignment of the legend in the chart. The options are: Near - Aligns the legend to the left of the chart. Center - Aligns the legend to the center of the chart. Far - Aligns the legend to the right of the chart.

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

    Background(String)

    The background color of the legend, which accepts values in hex and rgba as valid CSS color strings.

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

    Border(AccumulationChartBorder)

    Options for customizing the border of the legend.

    Declaration
    public AccumulationChartLegendSettingsBuilder Border(AccumulationChartBorder value)
    Parameters
    Type Name Description
    AccumulationChartBorder value
    Returns
    Type
    AccumulationChartLegendSettingsBuilder

    Border(Action<AccumulationChartBorderBuilder>)

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

    ContainerPadding(Object)

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

    Declaration
    public AccumulationChartLegendSettingsBuilder ContainerPadding(object value)
    Parameters
    Type Name Description
    System.Object value
    Returns
    Type
    AccumulationChartLegendSettingsBuilder

    Description(String)

    A description of the legend that provides additional information for screen readers.

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

    EnableHighlight(Boolean)

    If set to true, the series will be highlighted when hovering over the legend.

    Declaration
    public AccumulationChartLegendSettingsBuilder EnableHighlight(bool value)
    Parameters
    Type Name Description
    System.Boolean value
    Returns
    Type
    AccumulationChartLegendSettingsBuilder

    EnablePages(Boolean)

    If set to true, the legend will be displayed using pages.

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

    FixedWidth(Boolean)

    When set to true, all legend items are rendered with an equal width, which is the maximum width of all items.

    Declaration
    public AccumulationChartLegendSettingsBuilder FixedWidth(bool value)
    Parameters
    Type Name Description
    System.Boolean value
    Returns
    Type
    AccumulationChartLegendSettingsBuilder

    Height(String)

    Specifies the height of the legend in pixels.

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

    IsInversed(Boolean)

    If isInversed is set to true, it inverses the legend item content (image and text).

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

    ItemPadding(Double)

    Option to customize the padding between legend items.

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

    Layout(LegendLayout)

    Specifies the layout of the legend items in the chart. Available options are: Vertical: Legend items are arranged in a single column. If the legend items exceed the available space, paging is automatically applied to allow the user to navigate through the legend. Horizontal: Legend items are arranged in a single row. If the legend items exceed the available space, paging is automatically applied to allow the user to navigate through the legend. Auto (default): Legend items are placed based on the available space.

    Declaration
    public AccumulationChartLegendSettingsBuilder Layout(LegendLayout value)
    Parameters
    Type Name Description
    LegendLayout value
    Returns
    Type
    AccumulationChartLegendSettingsBuilder

    Location(AccumulationChartLocation)

    Specifies the location of the legend relative to the chart. If x is 20, the legend moves 20 pixels to the right of the chart.

    Note that the position must be set to Custom for this feature to work.

    Declaration
    public AccumulationChartLegendSettingsBuilder Location(AccumulationChartLocation value)
    Parameters
    Type Name Description
    AccumulationChartLocation value
    Returns
    Type
    AccumulationChartLegendSettingsBuilder

    Location(Action<AccumulationChartLocationBuilder>)

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

    Margin(Object)

    Options for customizing the left, right, top, and bottom margins of the chart.

    Declaration
    public AccumulationChartLegendSettingsBuilder Margin(object value)
    Parameters
    Type Name Description
    System.Object value
    Returns
    Type
    AccumulationChartLegendSettingsBuilder

    MaximumColumns(Double)

    Specifies the maximum number of columns to allow in the available space when the layout is set to 'Auto'.

    Declaration
    public AccumulationChartLegendSettingsBuilder MaximumColumns(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    AccumulationChartLegendSettingsBuilder

    MaximumLabelWidth(Double)

    Specifies the maximum width of the legend text labels.

    Declaration
    public AccumulationChartLegendSettingsBuilder MaximumLabelWidth(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    AccumulationChartLegendSettingsBuilder

    MaximumTitleWidth(Double)

    Specifies the maximum width of the legend title.

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

    Mode(LegendMode)

    Defines the mode for displaying legend items. Series - Legend items are generated based on the count of series. Point - Legend items are created according to each unique data point. Range - Legend items are generated based on the range color mapping property. Gradient - Displays a single linear bar that represents the range color mapping property.

    Note that this property is applicable only for the chart component.

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

    Opacity(Double)

    Customizes the opacity of the legend.

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

    Padding(Double)

    Option to customize the padding around the legend items.

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

    Position(LegendPosition)

    Sets the position of the legend in the chart. Available options include: Auto - Places the legend according to the area type. Top - Displays the legend at the top of the chart. Left - Displays the legend on the left side of the chart. Bottom - Displays the legend at the bottom of the chart. Right - Displays the legend to the right of the chart. Custom - Displays the legend according to the given x and y position values.

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

    Reverse(Boolean)

    If reverse is set to true, it reverses the order of the legend items.

    Declaration
    public AccumulationChartLegendSettingsBuilder Reverse(bool value)
    Parameters
    Type Name Description
    System.Boolean value
    Returns
    Type
    AccumulationChartLegendSettingsBuilder

    ShapeHeight(Double)

    Specify the height of the legend in pixels.

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

    ShapePadding(Double)

    Padding between the legend shape and text.

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

    ShapeWidth(Double)

    Specify the width of the legend in pixels.

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

    TabIndex(Double)

    The tabIndex property determines the order in which the legend receives focus when navigating through elements with the keyboard.

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

    TextOverflow(LabelOverflow)

    Defines the behavior for handling the overflow of legend text. Clip - Specifies that the text is clipped and not accessible. Ellipsis - Specifies an ellipsis (“...”) for the clipped text.

    Declaration
    public AccumulationChartLegendSettingsBuilder TextOverflow(LabelOverflow value)
    Parameters
    Type Name Description
    LabelOverflow value
    Returns
    Type
    AccumulationChartLegendSettingsBuilder

    TextStyle(AccumulationChartFont)

    The textStyle property provides options to customize the appearance of the text in the legend, including the font family, size, style, weight, and color.

    Declaration
    public AccumulationChartLegendSettingsBuilder TextStyle(AccumulationChartFont value)
    Parameters
    Type Name Description
    AccumulationChartFont value
    Returns
    Type
    AccumulationChartLegendSettingsBuilder

    TextStyle(Action<AccumulationChartFontBuilder>)

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

    TextWrap(TextWrap)

    Defines the text wrap behavior for the legend text when it overflows. Available options are: Normal - Specifies that words should only break at allowed break points. Wrap - Specifies that a word should break if it is too long to fit on a line by itself. AnyWhere - Specifies to break a word at any point if there are no acceptable break points in the line.

    Declaration
    public AccumulationChartLegendSettingsBuilder TextWrap(TextWrap value)
    Parameters
    Type Name Description
    TextWrap value
    Returns
    Type
    AccumulationChartLegendSettingsBuilder

    Title(String)

    Specifies the title of the legend.

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

    TitlePosition(LegendTitlePosition)

    The titlePosition property specifies the position of the legend title. Available options are: Top - Aligns the title to the top of the legend. Left - Aligns the title to the left of the legend. Right - Aligns the title to the right of the legend.

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

    TitleStyle(AccumulationChartFont)

    The titleStyle property configures the font settings for the legend title, including font family, size, style, weight, and color.

    Declaration
    public AccumulationChartLegendSettingsBuilder TitleStyle(AccumulationChartFont value)
    Parameters
    Type Name Description
    AccumulationChartFont value
    Returns
    Type
    AccumulationChartLegendSettingsBuilder

    TitleStyle(Action<AccumulationChartFontBuilder>)

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

    ToggleVisibility(Boolean)

    If set to true, the series visibility will collapse based on the legend's visibility.

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

    Visible(Boolean)

    If set to true, the legend will be displayed for the chart.

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

    Width(String)

    Specifies the width of the legend in pixels.

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