Skip to content

Interface: ScatterTraceFillgradient ​

A color gradient drawn instead of fillcolor (which still colors hover labels).

Properties ​

PropertyTypeDefault valueDescription
colorscale?| readonly string[] | ColorScale | readonly readonly (string | number)[][]undefinedGradient colors: a colorscale from the lowest to the highest value along the gradient direction, or from the center outwards for radial.
start?numberundefinedWhere the gradient starts (colorscale position 0), as a value on the axis of the gradient direction. Default: the lowest value of the fill along that axis. Ignored for radial.
stop?numberundefinedWhere the gradient ends (colorscale position 1), as a value on the axis of the gradient direction. Default: the highest value of the fill along that axis. Ignored for radial.
type?"none" | "radial" | "horizontal" | "vertical""none"Gradient direction: along x ('horizontal'), along y ('vertical'), or outwards from the center of the fill's bounding box ('radial').

Released under the MIT License.