ChartLegendSettingsBuilder Class Members
The following tables list the members exposed by ChartLegendSettingsBuilder.
Public Constructors
Name | Description | |
---|---|---|
![]() | ChartLegendSettingsBuilder Constructor | Overloaded. |
Public Properties
Name | Description | |
---|---|---|
![]() | Context | (Inherited from Syncfusion.EJ2.ControlBuilder) |
![]() | Output | (Inherited from Syncfusion.EJ2.ControlBuilder) |
Public Methods
Name | Description | |
---|---|---|
![]() | 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. |
![]() | Background | The background color of the legend that accepts value in hex and rgba as a valid CSS color string. |
![]() | Border | Overloaded. Options to customize the border of the legend. |
![]() | Description | Description for legends. |
![]() | Height | The height of the legend in pixels. |
![]() | Location | Overloaded. 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`. |
![]() | Margin | Options to customize left, right, top and bottom margins of the chart. |
![]() | Opacity | Opacity of the legend. |
![]() | Padding | Option to customize the padding between legend items. |
![]() | Position | 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. |
![]() | ShapeHeight | Shape height of the legend in pixels. |
![]() | ShapePadding | Padding between the legend shape and text. |
![]() | ShapeWidth | Shape width of the legend in pixels. |
![]() | TabIndex | TabIndex value for the legend. |
![]() | TextStyle | Overloaded. Options to customize the legend text. |
![]() | ToggleVisibility | If set to true, series' visibility collapses based on the legend visibility. |
![]() | Visible | If set to true, legend will be visible. |
![]() | Width | The width of the legend in pixels. |
Extension Methods
Name | Description | |
---|---|---|
![]() | IterateIndex | Overloaded. Iterates the index. |
See Also