Skip to content

Series Stack Config

Configure the stacking of series.

seriesStacks 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 seriesStackDefaults; 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 #seriesStacks.propertyName, and to a member of a nested property as #seriesStacks.propertyName.memberName.

Properties

axis

The unique identifier of the value axis that the series stack belongs to.

id

The unique identifier for the series stack so it can be referenced by series that belong to it.

Referenced by series[].stack to place series in this stack. Stacked series draw on top of one another and animate as a single gapless unit — each segment’s baseline follows the tweened top of the segment below it throughout a transition.

outerCapExpand

Whether to expand the base of caps for series that are an outer series of the stack when the size of the cap is greater than the extent of the bar.

  • Default: true
  • Validation: should be a boolean

outerCapSize

The size of the cap (in pixels) for series that are an outer series of the stack.

  • Default: 5
  • Validation: should be a number >= to 0

outerCapType

The type (point, curve, round, use null for none) of cap for series that are an outer series of the stack.

Caps only the outer end of the whole stack rather than every segment; pairs with series[].capOnlyStackOuter.

  • Default: null
  • Validation: should be one of [ "point", "curve", "round" ] or be equal to null

Released under the BSD-3-Clause License.