Class ChartLocation
Gets or sets the option for customizing the legend location in the SfChart.
Inheritance
Inherited Members
Namespace: Syncfusion.Blazor.Charts
Assembly: Syncfusion.Blazor.dll
Syntax
public class ChartLocation : ChartDefaultLocation, ISubcomponentTracker
Remarks
This is only applicable when the Position is set to LegendPosition.Custom
.
Constructors
ChartLocation()
Declaration
public ChartLocation()
Properties
X
Gets or sets the x-coordinate of the legend's location. This is only applicable when the Position is set to LegendPosition.Custom
.
Declaration
public override double X { get; set; }
Property Value
Type | Description |
---|---|
System.Double | A double value representing the x-coordinate of the legend's location, measured in pixels. The default value is 0 pixel. |
Overrides
Remarks
This property accepts numerical values to precisely control the x-coordinate of the legend's location.
Y
Gets or sets the y-coordinate of the legend's location. This is only applicable when the Position is set to LegendPosition.Custom
.
Declaration
public override double Y { get; set; }
Property Value
Type | Description |
---|---|
System.Double | A double value representing the x-coordinate of the legend's location, measured in pixels. The default value is 0 pixel. |
Overrides
Remarks
This property accepts numerical values to precisely control the x-coordinate of the legend's location.
Methods
OnInitialized()
Declaration
protected override void OnInitialized()
OnParametersSet()
Declaration
protected override void OnParametersSet()