menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class AccumulationChartCenter - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class AccumulationChartCenter

    Gets or sets options to customize the center of the accumulation chart.

    Inheritance
    System.Object
    SfBaseComponent
    AccumulationChartCenter
    Inherited Members
    SfBaseComponent.Dispose()
    SfBaseComponent.Dispose(Boolean)
    SfBaseComponent.OnAfterRenderAsync(Boolean)
    SfBaseComponent.OnInitializedAsync()
    SfBaseComponent.OnObservableChange(String, Object, Boolean, NotifyCollectionChangedEventArgs)
    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 50%, indicating that the chart is centered horizontally.

    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 50%, indicating that the chart is centered vertically.

    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
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved