Class BulletChartBulletChartLegendSettingsBuilder
Inheritance
System.Object
Syncfusion.EJ2.ControlBuilder
BulletChartBulletChartLegendSettingsBuilder
Assembly: Syncfusion.EJ2.dll
Syntax
public class BulletChartBulletChartLegendSettingsBuilder : ControlBuilder
Constructors
BulletChartBulletChartLegendSettingsBuilder()
Declaration
public BulletChartBulletChartLegendSettingsBuilder()
BulletChartBulletChartLegendSettingsBuilder(BulletChartBulletChartLegendSettings)
Declaration
public BulletChartBulletChartLegendSettingsBuilder(BulletChartBulletChartLegendSettings model)
Parameters
Methods
Alignment(Alignment)
Legend in chart can be aligned as follows:
Near: Aligns the legend to the left of the bullet chart.
Center: Aligns the legend to the center of the bullet chart.
Far: Aligns the legend to the right of the bullet chart.
Declaration
public BulletChartBulletChartLegendSettingsBuilder Alignment(Alignment value)
Parameters
Returns
Background(String)
The background color of the bullet chart legend that accepts value in hex and rgba as a valid CSS color string.
Declaration
public BulletChartBulletChartLegendSettingsBuilder Background(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
Border(BulletChartBorder)
Options to customize the border of the bullet chart legend.
Declaration
public BulletChartBulletChartLegendSettingsBuilder Border(BulletChartBorder value)
Parameters
Returns
Border(Action<BulletChartBorderBuilder>)
Declaration
public BulletChartBulletChartLegendSettingsBuilder Border(Action<BulletChartBorderBuilder> border)
Parameters
Returns
Location(BulletChartLocation)
Specifies the location of the legend, relative to the bullet chart.
If x is 20, legend moves by 20 pixels to the right of the bullet chart. It requires the position
to be Custom
.
Declaration
public BulletChartBulletChartLegendSettingsBuilder Location(BulletChartLocation value)
Parameters
Returns
Location(Action<BulletChartLocationBuilder>)
Declaration
public BulletChartBulletChartLegendSettingsBuilder Location(Action<BulletChartLocationBuilder> location)
Parameters
Returns
Margin(Object)
Options to customize left, right, top and bottom margins of the bullet chart.
Declaration
public BulletChartBulletChartLegendSettingsBuilder Margin(object value)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
Returns
Opacity(Double)
Opacity of the bullet chart legend.
Declaration
public BulletChartBulletChartLegendSettingsBuilder Opacity(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
Padding(Double)
Option to customize the padding between legend items.
Declaration
public BulletChartBulletChartLegendSettingsBuilder Padding(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
Position(LegendPosition)
Position of the legend in the bullet chart are,
Auto: Places the legend based on area type.
Top: Displays the legend at the top of the bullet chart.
Left: Displays the legend at the left of the bullet chart.
Bottom: Displays the legend at the bottom of the bullet chart.
Right: Displays the legend at the right of the bullet chart.
Custom: Displays the legend based on the given x and y values.
Declaration
public BulletChartBulletChartLegendSettingsBuilder Position(LegendPosition value)
Parameters
Returns
ShapeHeight(Double)
Shape height of the bullet chart legend in pixels.
Declaration
public BulletChartBulletChartLegendSettingsBuilder ShapeHeight(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
ShapePadding(Double)
Padding between the bullet chart legend shape and text.
Declaration
public BulletChartBulletChartLegendSettingsBuilder ShapePadding(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
ShapeWidth(Double)
Shape width of the bullet chart legend in pixels.
Declaration
public BulletChartBulletChartLegendSettingsBuilder ShapeWidth(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
TabIndex(Double)
TabIndex value for the bullet chart legend.
Declaration
public BulletChartBulletChartLegendSettingsBuilder TabIndex(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
TextStyle(BulletChartLegendTextStyle)
Options to customize the bullet chart legend text.
Declaration
public BulletChartBulletChartLegendSettingsBuilder TextStyle(BulletChartLegendTextStyle value)
Parameters
Returns
TextStyle(Action<BulletChartBulletLabelStyleBuilder>)
Declaration
public BulletChartBulletChartLegendSettingsBuilder TextStyle(Action<BulletChartBulletLabelStyleBuilder> textStyle)
Parameters
Returns
Visible(Boolean)
If set to true, legend will be visible.
Declaration
public BulletChartBulletChartLegendSettingsBuilder Visible(bool value)
Parameters
Type |
Name |
Description |
System.Boolean |
value |
|
Returns