Class AccumulationChartGradientColorStops
Represents the collection of color stops for the gradient fill of the accumulation chart series. These stops determine how the colors blend across the gradient.
Inheritance
AccumulationChartGradientColorStops
Inherited Members
Namespace: Syncfusion.Blazor.Charts
Assembly: Syncfusion.Blazor.dll
Syntax
public class AccumulationChartGradientColorStops : ChartSubComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Remarks
Use AccumulationChartGradientColorStops as a child of AccumulationChartLinearGradient or AccumulationChartRadialGradient to define an ordered set of AccumulationChartGradientColorStop 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
<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
AccumulationChartGradientColorStops()
Declaration
public AccumulationChartGradientColorStops()
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderTreeBuilder | __builder |