Class AccumulationChartLegendSettingsBuilder
Inheritance
System.Object
AccumulationChartLegendSettingsBuilder
Assembly: Syncfusion.EJ2.dll
Syntax
public class AccumulationChartLegendSettingsBuilder : ControlBuilder
Constructors
AccumulationChartLegendSettingsBuilder()
Declaration
public AccumulationChartLegendSettingsBuilder()
AccumulationChartLegendSettingsBuilder(AccumulationChartLegendSettings)
Declaration
public AccumulationChartLegendSettingsBuilder(AccumulationChartLegendSettings model)
Parameters
Methods
Alignment(Alignment)
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 AccumulationChartLegendSettingsBuilder Alignment(Alignment value)
Parameters
Returns
Background(String)
The background color of the legend that accepts value in hex and rgba as a valid CSS color string.
Declaration
public AccumulationChartLegendSettingsBuilder Background(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
Border(AccumulationChartBorder)
Options to customize the border of the legend.
Declaration
public AccumulationChartLegendSettingsBuilder Border(AccumulationChartBorder value)
Parameters
Returns
Border(Action<AccumulationChartBorderBuilder>)
Declaration
public AccumulationChartLegendSettingsBuilder Border(Action<AccumulationChartBorderBuilder> border)
Parameters
Returns
Description(String)
Declaration
public AccumulationChartLegendSettingsBuilder Description(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
EnablePages(Boolean)
If set to true, legend will be visible using pages.
Declaration
public AccumulationChartLegendSettingsBuilder EnablePages(bool value)
Parameters
Type |
Name |
Description |
System.Boolean |
value |
|
Returns
Height(String)
The height of the legend in pixels.
Declaration
public AccumulationChartLegendSettingsBuilder Height(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
Location(AccumulationChartLocation)
Specifies 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 AccumulationChartLegendSettingsBuilder Location(AccumulationChartLocation value)
Parameters
Returns
Location(Action<AccumulationChartLocationBuilder>)
Declaration
public AccumulationChartLegendSettingsBuilder Location(Action<AccumulationChartLocationBuilder> location)
Parameters
Returns
Margin(Object)
Options to customize left, right, top and bottom margins of the chart.
Declaration
public AccumulationChartLegendSettingsBuilder Margin(object value)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
Returns
MaximumTitleWidth(Double)
maximum width for the legend title.
Declaration
public AccumulationChartLegendSettingsBuilder MaximumTitleWidth(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
Opacity(Double)
Declaration
public AccumulationChartLegendSettingsBuilder Opacity(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
Padding(Double)
Option to customize the padding between legend items.
Declaration
public AccumulationChartLegendSettingsBuilder Padding(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
Position(LegendPosition)
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 AccumulationChartLegendSettingsBuilder Position(LegendPosition value)
Parameters
Returns
ShapeHeight(Double)
Shape height of the legend in pixels.
Declaration
public AccumulationChartLegendSettingsBuilder ShapeHeight(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
ShapePadding(Double)
Padding between the legend shape and text.
Declaration
public AccumulationChartLegendSettingsBuilder ShapePadding(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
ShapeWidth(Double)
Shape width of the legend in pixels.
Declaration
public AccumulationChartLegendSettingsBuilder ShapeWidth(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
TabIndex(Double)
TabIndex value for the legend.
Declaration
public AccumulationChartLegendSettingsBuilder TabIndex(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
TextStyle(AccumulationChartFont)
Options to customize the legend text.
Declaration
public AccumulationChartLegendSettingsBuilder TextStyle(AccumulationChartFont value)
Parameters
Returns
TextStyle(Action<AccumulationChartFontBuilder>)
Declaration
public AccumulationChartLegendSettingsBuilder TextStyle(Action<AccumulationChartFontBuilder> textStyle)
Parameters
Returns
Title(String)
Declaration
public AccumulationChartLegendSettingsBuilder Title(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
TitlePosition(LegendTitlePosition)
Declaration
public AccumulationChartLegendSettingsBuilder TitlePosition(LegendTitlePosition value)
Parameters
Returns
TitleStyle(AccumulationChartFont)
Options to customize the legend title.
Declaration
public AccumulationChartLegendSettingsBuilder TitleStyle(AccumulationChartFont value)
Parameters
Returns
TitleStyle(Action<AccumulationChartFontBuilder>)
Declaration
public AccumulationChartLegendSettingsBuilder TitleStyle(Action<AccumulationChartFontBuilder> titleStyle)
Parameters
Returns
ToggleVisibility(Boolean)
If set to true, series' visibility collapses based on the legend visibility.
Declaration
public AccumulationChartLegendSettingsBuilder ToggleVisibility(bool value)
Parameters
Type |
Name |
Description |
System.Boolean |
value |
|
Returns
Visible(Boolean)
If set to true, legend will be visible.
Declaration
public AccumulationChartLegendSettingsBuilder Visible(bool value)
Parameters
Type |
Name |
Description |
System.Boolean |
value |
|
Returns
Width(String)
The width of the legend in pixels.
Declaration
public AccumulationChartLegendSettingsBuilder Width(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns