Skip to content

Radial Gradient Config

Configure radial gradients to be applied to series.

radialGradients is a list section: it takes an array of config objects (a single object is also accepted and treated as a one-entry array). Values shared by every entry can be set once in radialGradientDefaults; a value set on an individual entry wins over the shared one.

Every property is optional and falls back to its default. Property anchors are stable: link to any entry as #radialGradients.propertyName, and to a member of a nested property as #radialGradients.propertyName.memberName.

Properties

cx

The cx property of the svg radial gradient.

  • Default: 0.5
  • Validation: should be a number >= to 0 and <= 1
  • Used in: Gradients

cy

The cy property of the svg radial gradient.

  • Default: 0.5
  • Validation: should be a number >= to 0 and <= 1
  • Used in: Gradients

fx

The fx property of the svg radial gradient.

  • Default: 0.5
  • Validation: should be a number >= to 0 and <= 1
  • Used in: Gradients

fy

The fy property of the svg radial gradient.

  • Default: 0.5
  • Validation: should be a number >= to 0 and <= 1
  • Used in: Gradients

id

The unique identifier for the gradient so that it can be referenced for use.

  • Default: RG${index} — radial gradient index
  • Validation: should be a string; should be unique
  • Used in: Gradients

r

The r property of the svg radial gradient.

  • Default: 0.5
  • Validation: should be a number >= to 0 and <= 1
  • Used in: Gradients

rotation

The rotation property (in degrees) of the svg radial gradient.

  • Default: 0
  • Validation: should be a number >= to -360 and <= 360

stops

The list of svg gradient stops, with offset, color and opacity properties.

  • Default: none
  • Validation: should be a non-empty array with elements that should be an object with exact properties { offset: should be a number >= to 0 and <= 1, color: should be a valid color, opacity: should be a number >= to 0 and <= 1 }
  • Used in: Gradients

Released under the BSD-3-Clause License.