Class PivotViewPivotChartSettingsLegendSettingsBuilder
Inheritance
System.Object
Syncfusion.EJ2.ControlBuilder
PivotViewPivotChartSettingsLegendSettingsBuilder
Assembly: Syncfusion.EJ2.dll
Syntax
public class PivotViewPivotChartSettingsLegendSettingsBuilder : ControlBuilder
Constructors
PivotViewPivotChartSettingsLegendSettingsBuilder()
Declaration
public PivotViewPivotChartSettingsLegendSettingsBuilder()
PivotViewPivotChartSettingsLegendSettingsBuilder(PivotViewPivotChartSettingsLegendSettings)
Declaration
public PivotViewPivotChartSettingsLegendSettingsBuilder(PivotViewPivotChartSettingsLegendSettings model)
Parameters
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
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
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
Description(String)
Allows to set the description for legends.
Declaration
public PivotViewPivotChartSettingsLegendSettingsBuilder Description(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
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
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
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
Opacity(Double)
Allows to set the opacity of the legend.
Declaration
public PivotViewPivotChartSettingsLegendSettingsBuilder Opacity(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
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
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
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
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
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
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
TextStyle(Object)
Allows options to customize the legend text.
Declaration
public PivotViewPivotChartSettingsLegendSettingsBuilder TextStyle(object value)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
Returns
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
Visible(Boolean)
If set to true, legend will be visible.
Declaration
public PivotViewPivotChartSettingsLegendSettingsBuilder Visible(bool value)
Parameters
Type |
Name |
Description |
System.Boolean |
value |
|
Returns
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