alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class AccumulationChartLinearGradient

    Provides the options to configure the linear gradient in an AccumulationChartSeries within the SfAccumulationChart component.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    SfBaseComponent
    AccumulationChartLinearGradient
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    ComponentBase.Assets
    ComponentBase.AssignedRenderMode
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnInitialized()
    ComponentBase.OnParametersSet()
    ComponentBase.OnParametersSetAsync()
    ComponentBase.RendererInfo
    ComponentBase.SetParametersAsync(ParameterView)
    ComponentBase.ShouldRender()
    ComponentBase.StateHasChanged()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    OwningComponentBase.IsDisposed
    OwningComponentBase.ScopedServices
    SfBaseComponent.Dispose()
    SfBaseComponent.Dispose(bool)
    SfBaseComponent.GetEffectivePlatform()
    SfBaseComponent.GetMainComponentPlatform()
    SfBaseComponent.IsMainLicenseComponent()
    SfBaseComponent.LicenseContext
    SfBaseComponent.OnAfterRenderAsync(bool)
    SfBaseComponent.OnInitializedAsync()
    SfBaseComponent.OnObservableChange(string, object, bool, NotifyCollectionChangedEventArgs)
    SfBaseComponent.ValidateLicense()
    Namespace: Syncfusion.Blazor.Charts
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class AccumulationChartLinearGradient : SfBaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
    Remarks

    AccumulationChartLinearGradient is a child component of AccumulationChartSeries and inherits behavior from LinearGradient. Use X1, Y1, X2, and Y2 to define the gradient direction, and declare color transitions using AccumulationChartGradientColorStops and AccumulationChartGradientColorStop. Coordinates are typically normalized in the range 0 to 1.

    Examples
    @using Syncfusion.Blazor.Charts 
    
    <SfAccumulationChart> 
        <AccumulationChartSeriesCollection> 
            <AccumulationChartSeries Type="AccumulationType.Pie" 
                                     XName="Category" 
                                     YName="Value"> 
                <AccumulationChartLinearGradient X1="0" Y1="0" X2="1" Y2="0"> 
                    <AccumulationChartGradientColorStops> 
                        <AccumulationChartGradientColorStop Offset="0"   Color="#42A5F5" Opacity="1" /> 
                        <AccumulationChartGradientColorStop Offset="100" Color="#1E88E5" Opacity="1" /> 
                    </AccumulationChartGradientColorStops> 
                </AccumulationChartLinearGradient> 
            </AccumulationChartSeries> 
        </AccumulationChartSeriesCollection> 
    </SfAccumulationChart>

    Constructors

    AccumulationChartLinearGradient()

    Declaration
    public AccumulationChartLinearGradient()

    Properties

    GradientColorStops

    Holds the collection of color stops for the gradient fill of the accumulationchart series. These stops determine how the colors blend across the gradient.

    Declaration
    [Parameter]
    public List<AccumulationChartGradientColorStop>? GradientColorStops { get; set; }
    Property Value
    Type
    List<AccumulationChartGradientColorStop>

    X1

    Gets or sets the x-coordinate of the starting point of the linear gradient.

    Declaration
    [Parameter]
    public double X1 { get; set; }
    Property Value
    Type Description
    double

    A double value representing the start x-coordinate. The default value is 0.

    Remarks

    Defines the origin on the x-axis for the gradient direction. Values are commonly specified in the normalized range 0 to 1.

    X2

    Gets or sets the x-coordinate of the endpoint for the linear gradient.

    Declaration
    [Parameter]
    public double X2 { get; set; }
    Property Value
    Type Description
    double

    A double value representing the end x-coordinate. The default value is 0.

    Remarks

    Determines the end position on the x-axis to control the gradient direction. Values are commonly specified in the normalized range 0 to 1.

    Y1

    Gets or sets the y-coordinate of the starting point of the linear gradient.

    Declaration
    [Parameter]
    public double Y1 { get; set; }
    Property Value
    Type Description
    double

    A double value representing the start y-coordinate. The default value is 0.

    Remarks

    Defines the origin on the y-axis for the gradient direction. Values are commonly specified in the normalized range 0 to 1.

    Y2

    Gets or sets the y-coordinate of the endpoint for the linear gradient.

    Declaration
    [Parameter]
    public double Y2 { get; set; }
    Property Value
    Type Description
    double

    A double value representing the end y-coordinate. The default value is 0.

    Remarks

    Determines the end position on the y-axis to control the gradient direction. Values are commonly specified in the normalized range 0 to 1.

    Methods

    BuildRenderTree(RenderTreeBuilder)

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    RenderTreeBuilder __builder
    Overrides
    ComponentBase.BuildRenderTree(RenderTreeBuilder)

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved