Class StockChartGradientColorStops
Represents the collection of color stops for the gradient fill of the stock chart series. These stops determine how the colors blend across the gradient.
Inheritance
StockChartGradientColorStops
Inherited Members
Namespace: Syncfusion.Blazor.Charts
Assembly: Syncfusion.Blazor.dll
Syntax
public class StockChartGradientColorStops : ChartSubComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Remarks
Use StockChartGradientColorStops as a child of StockChartLinearGradient or StockChartRadialGradient to define an ordered set of StockChartGradientColorStop entries. At least two stops (for example, offsets 0 and 100) are recommended to create a visible transition.
Stops are applied in ascending order of Offset. Ensure offsets fall within the 0–100 range and specify colors/opacity as required.
Examples
@using Syncfusion.Blazor.Charts
<SfStockChart>
<StockChartSeriesCollection>
<StockChartSeries Type="ChartSeriesType.Column"
XName="Date"
YName="Close">
<StockChartLinearGradient X1="0" Y1="0" X2="1" Y2="0">
<StockChartGradientColorStops>
<StockChartGradientColorStop Offset="0" Color="#42A5F5" Opacity="1" />
<StockChartGradientColorStop Offset="100" Color="#1E88E5" Opacity="1" />
</StockChartGradientColorStops>
</StockChartLinearGradient>
</StockChartSeries>
</StockChartSeriesCollection>
</SfStockChart>
Constructors
StockChartGradientColorStops()
Declaration
public StockChartGradientColorStops()
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderTreeBuilder | __builder |