menu

ASP.NET MVC - EJ2

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

    Show / Hide Table of Contents

    Class PivotViewPivotChartSettingsLegendSettingsBuilder

    Inheritance
    System.Object
    Syncfusion.EJ2.ControlBuilder
    PivotViewPivotChartSettingsLegendSettingsBuilder
    Namespace: Syncfusion.EJ2.PivotView
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class PivotViewPivotChartSettingsLegendSettingsBuilder : ControlBuilder

    Constructors

    PivotViewPivotChartSettingsLegendSettingsBuilder()

    Declaration
    public PivotViewPivotChartSettingsLegendSettingsBuilder()

    PivotViewPivotChartSettingsLegendSettingsBuilder(PivotViewPivotChartSettingsLegendSettings)

    Declaration
    public PivotViewPivotChartSettingsLegendSettingsBuilder(PivotViewPivotChartSettingsLegendSettings model)
    Parameters
    Type Name Description
    PivotViewPivotChartSettingsLegendSettings model

    Methods

    Alignment(Object)

    Allows to set the legend in chart can be aligned as follows: 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 PivotViewPivotChartSettingsLegendSettingsBuilder Alignment(object value)
    Parameters
    Type Name Description
    System.Object value
    Returns
    Type
    PivotViewPivotChartSettingsLegendSettingsBuilder

    Background(String)

    Allows to set the background color of the legend that accepts value in hex and rgba as a valid CSS color string.

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

    Border(Object)

    Allows options to customize the border of the legend.

    Declaration
    public PivotViewPivotChartSettingsLegendSettingsBuilder Border(object value)
    Parameters
    Type Name Description
    System.Object value
    Returns
    Type
    PivotViewPivotChartSettingsLegendSettingsBuilder

    Description(String)

    Allows to set the description for legends.

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

    Height(String)

    Allows to set the height of the legend in pixels.

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

    Location(Object)

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

    Declaration
    public PivotViewPivotChartSettingsLegendSettingsBuilder Location(object value)
    Parameters
    Type Name Description
    System.Object value
    Returns
    Type
    PivotViewPivotChartSettingsLegendSettingsBuilder

    Margin(Object)

    Allows options to customize left, right, top and bottom margins of the chart.

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

    Opacity(Double)

    Allows to set the opacity of the legend.

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

    Padding(Double)

    Allows option to customize the padding between legend items.

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

    Position(Object)

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

    Declaration
    public PivotViewPivotChartSettingsLegendSettingsBuilder Position(object value)
    Parameters
    Type Name Description
    System.Object value
    Returns
    Type
    PivotViewPivotChartSettingsLegendSettingsBuilder

    ShapeHeight(Double)

    Allows to set the shape height of the legend in pixels.

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

    ShapePadding(Double)

    Allows to set the padding between the legend shape and text.

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

    ShapeWidth(Double)

    Allows to set the shape width of the legend in pixels.

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

    TabIndex(Double)

    Allows to set the tabindex value for the legend.

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

    TextStyle(Object)

    Allows options to customize the legend text.

    Declaration
    public PivotViewPivotChartSettingsLegendSettingsBuilder TextStyle(object value)
    Parameters
    Type Name Description
    System.Object value
    Returns
    Type
    PivotViewPivotChartSettingsLegendSettingsBuilder

    ToggleVisibility(Boolean)

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

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

    Visible(Boolean)

    If set to true, legend will be visible.

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

    Width(String)

    Allows to set the width of the legend in pixels.

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