ChartLinearGradientProps

Defines the style settings for a linear gradient applied to a supported chart host.

Props

The following table outlines the props for the ChartLinearGradientProps:

NameTypeDefaultDescription
x1
number | string
0

Specifies the x-coordinate of the gradient's start point.

x2
number | string
1

Specifies the x-coordinate of the gradient's end point.

y1
number | string
0

Specifies the y-coordinate of the gradient's start point.

y2
number | string
0

Specifies the y-coordinate of the gradient's end point. The default coordinate set (x1=0, y1=0, x2=1, y2=0) produces a horizontal, left-to-right gradient.