Class AccumulationChartLinearGradient
Provides the options to configure the linear gradient in an AccumulationChartSeries within the SfAccumulationChart component.
Inheritance
Inherited Members
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 |
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 |
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 |
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 |
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 |