Class AccumulationChartCenter
Gets or sets options to customize the center of the accumulation chart.
Inherited Members
Namespace: Syncfusion.Blazor.Charts
Assembly: Syncfusion.Blazor.dll
Syntax
public class AccumulationChartCenter : SfBaseComponent
Constructors
AccumulationChartCenter()
Declaration
public AccumulationChartCenter()
Properties
X
Gets or sets the X-coordinate for the center of the SfAccumulationChart.
Declaration
public string X { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the horizontal position of the chart center, typically expressed as a percentage of the total width. The default value is |
Remarks
Adjusting the X value customizes the horizontal alignment of the chart's center. This value should be specified as a percentage.
Examples
// The following code snippet demonstrates how to set the X-coordinate of the chart's center to "30%":
<SfAccumulationChart>
<AccumulationChartSeriesCollection>
<AccumulationChartSeries DataSource="@StatisticsDetails" XName="Browser" YName="Users">
</AccumulationChartSeries>
</AccumulationChartSeriesCollection>
<AccumulationChartCenter X="30%"></AccumulationChartCenter>
</SfAccumulationChart>
Y
Gets or sets the Y-coordinate for the center of the SfAccumulationChart.
Declaration
public string Y { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the vertical position of the chart center, typically expressed as a percentage of the total height. The default value is |
Remarks
Adjusting the Y value customizes the vertical alignment of the chart's center. This value should be specified as a percentage.
Examples
// The following code snippet demonstrates how to set the Y-coordinate of the chart's center to "60%":
<SfAccumulationChart>
<AccumulationChartSeriesCollection>
<AccumulationChartSeries DataSource="@StatisticsDetails" XName="Browser" YName="Users">
</AccumulationChartSeries>
</AccumulationChartSeriesCollection>
<AccumulationChartCenter Y="60%"></AccumulationChartCenter>
</SfAccumulationChart>
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder | __builder |