menu

ASP.NET MVC - EJ2

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

    Show / Hide Table of Contents

    Class PivotViewPivotChartSettingsLegendSettings

    Inheritance
    System.Object
    Syncfusion.EJ2.EJTagHelper
    PivotViewPivotChartSettingsLegendSettings
    Namespace: Syncfusion.EJ2.PivotView
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class PivotViewPivotChartSettingsLegendSettings : EJTagHelper

    Constructors

    PivotViewPivotChartSettingsLegendSettings()

    Declaration
    public PivotViewPivotChartSettingsLegendSettings()

    Properties

    Alignment

    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 object Alignment { get; set; }
    Property Value
    Type Description
    System.Object

    The default value is null

    Background

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

    Declaration
    public string Background { get; set; }
    Property Value
    Type Description
    System.String

    The default value is "transparent"

    Border

    Allows options to customize the border of the legend.

    Declaration
    public object Border { get; set; }
    Property Value
    Type Description
    System.Object

    The default value is null

    ContentTemplate

    To get or set value for ContentTemplate.

    Declaration
    public MvcTemplate<object> ContentTemplate { get; set; }
    Property Value
    Type
    Syncfusion.EJ2.MvcTemplate<System.Object>

    Description

    Allows to set the description for legends.

    Declaration
    public string Description { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    Height

    Allows to set the height of the legend in pixels.

    Declaration
    public string Height { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    Location

    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 object Location { get; set; }
    Property Value
    Type Description
    System.Object

    The default value is null

    Margin

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

    Declaration
    public object Margin { get; set; }
    Property Value
    Type Description
    System.Object

    The default value is null

    Opacity

    Allows to set the opacity of the legend.

    Declaration
    public double Opacity { get; set; }
    Property Value
    Type Description
    System.Double

    The default value is 1

    Padding

    Allows option to customize the padding between legend items.

    Declaration
    public double Padding { get; set; }
    Property Value
    Type Description
    System.Double

    The default value is 8

    Position

    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 object Position { get; set; }
    Property Value
    Type Description
    System.Object

    The default value is null

    ShapeHeight

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

    Declaration
    public double ShapeHeight { get; set; }
    Property Value
    Type Description
    System.Double

    The default value is 10

    ShapePadding

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

    Declaration
    public double ShapePadding { get; set; }
    Property Value
    Type Description
    System.Double

    The default value is 5

    ShapeWidth

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

    Declaration
    public double ShapeWidth { get; set; }
    Property Value
    Type Description
    System.Double

    The default value is 10

    TabIndex

    Allows to set the tabindex value for the legend.

    Declaration
    public double TabIndex { get; set; }
    Property Value
    Type Description
    System.Double

    The default value is 3

    TextStyle

    Allows options to customize the legend text.

    Declaration
    public object TextStyle { get; set; }
    Property Value
    Type Description
    System.Object

    The default value is null

    ToggleVisibility

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

    Declaration
    public bool ToggleVisibility { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is true

    Visible

    If set to true, legend will be visible.

    Declaration
    public bool Visible { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is true

    Width

    Allows to set the width of the legend in pixels.

    Declaration
    public string Width { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved