alexa
menu

Blazor

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

    Show / Hide Table of Contents

    Class StockChartRadialGradient

    Represents options to configure a radial gradient for a stock chart StockChartSeries, technical StockChartIndicator, or StockChartTrendline within the SfStockChart component.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    ChartSubComponent
    RadialGradient
    StockChartRadialGradient
    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.OnAfterRenderAsync(bool)
    ComponentBase.OnInitialized()
    ComponentBase.OnInitializedAsync()
    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.Dispose(bool)
    OwningComponentBase.IsDisposed
    OwningComponentBase.ScopedServices
    RadialGradient.Cx
    RadialGradient.Cy
    RadialGradient.Fx
    RadialGradient.Fy
    RadialGradient.R
    Namespace: Syncfusion.Blazor.Charts
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class StockChartRadialGradient : RadialGradient, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
    Remarks

    StockChartRadialGradient is a child component that inherits from RadialGradient. Configure the gradient center using Cx and Cy, the focal point using Fx and Fy, and the radius using R. Define color transitions using Syncfusion.Blazor.Charts.StockChartRadialGradient.StockChartGradientColorStops with one or more StockChartGradientColorStop elements.

    Coordinates for center, focus, and radius are typically normalized in the range 0..1 relative to the element’s gradient box. A center at (0.5, 0.5) places the gradient in the middle; R="0.5" covers roughly half the box. Stop Offset values may be provided as normalized (0..1) or percentage (0..100).

    When nested under StockChartSeries, StockChartIndicator, or StockChartTrendline, the radial gradient is applied automatically to the owning element.

    Examples
    @using Syncfusion.Blazor.Charts
    
    <SfStockChart>
        <StockChartSeriesCollection>
            <StockChartSeries Type="ChartSeriesType.Area"
                            XName="Date"
                            YName="Close"
                            Name="Close">
                <StockChartRadialGradient Cx="0.5" Cy="0.5" Fx="0.5" Fy="0.5" R="0.6">
                    <StockChartGradientColorStops>
                        <StockChartGradientColorStop Offset="0"   Color="#FFE082" Opacity="1" />
                        <StockChartGradientColorStop Offset="100" Color="#FFCA28" Opacity="1" />
                    </StockChartGradientColorStops>
                </StockChartRadialGradient>
    
                <StockChartTrendlines>
                    <StockChartTrendline Type="TrendlineTypes.Logarithmic" Width="2" Name="Log Trend">
                        <StockChartRadialGradient Cx="0.5" Cy="0.5" Fx="0.5" Fy="0.5" R="0.5">
                            <StockChartGradientColorStops>
                                <StockChartGradientColorStop Offset="0"   Color="#EF4444" Opacity="1" />
                                <StockChartGradientColorStop Offset="100" Color="#3B82F6" Opacity="1" />
                            </StockChartGradientColorStops>
                        </StockChartRadialGradient>
                    </StockChartTrendline>
                </StockChartTrendlines>
            </StockChartSeries>
        </StockChartSeriesCollection>
    </SfStockChart>

    Constructors

    StockChartRadialGradient()

    Declaration
    public StockChartRadialGradient()

    Methods

    BuildRenderTree(RenderTreeBuilder)

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

    Implements

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