Skip to main content

Partition Spec

Defines pie, sunburst, treemap and waffle charts.

Overview

Compatible Specs

Partition is a standalone spec and cannot be combined with other specs except for supported global specs.

Overrides

  • specType -> SpecType.Series
  • chartType -> ChartType.Partition

Props

All props can be found via PartitionProps type.

Spec Props

Inherits Spec props

LegacyAnimationConfig Props

Inherits LegacyAnimationConfig props

data

  • Type: data: D[]

valueAccessor

  • Type: valueAccessor?: ValueAccessor<D>
  • Default: (d) => (typeof d === 'number' ? d : 0)

valueFormatter

  • Type: valueFormatter?: ValueFormatter
  • Default: (d) => String(d)

valueGetter

  • Type: valueGetter?: ValueGetter
  • Default: (n) => n[AGGREGATE_KEY]

percentFormatter

  • Type: percentFormatter: ValueFormatter

topGroove

  • Type: topGroove: Pixels
  • Default: 20

smallMultiples

  • Type: smallMultiples?: string | null
  • Default: __global__small_multiples___

layers

  • Type: layers?: Layer<D>[]

clockwiseSectors

  • Type: clockwiseSectors?: boolean
  • Default: true

Largest to smallest sectors are positioned in a clockwise order

specialFirstInnermostSector

  • Type: specialFirstInnermostSector?: boolean
  • Default: true

Starts placement with the second largest slice, for the innermost pie/ring

layout

  • Type: layout: PartitionLayout

maxRowCount

  • Type: maxRowCount?: number
  • Default: 12

drilldown

  • Type: drilldown?: boolean
  • Tag: @alpha
  • Default: false

fillOutside

  • Type: fillOutside?: boolean
  • Default: false

radiusOutside

  • Type: radiusOutside?: Radius
  • Default: 128

fillRectangleWidth

  • Type: fillRectangleWidth?: Distance
  • Default: Infinity

fillRectangleHeight

  • Type: fillRectangleHeight?: Distance
  • Default: Infinity