IChartPyramidSlots

interface
Chart

Slot signatures exposed by <OrigamChartPyramid>. Extends IChartBaseSlots with a slice-label slot that replaces the label rendered on or beside each slice, receiving the category name, raw value, formatted value, resolved colour, index and visibility.

TypeScript

Definition

The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Inheritance

Extends

Parent interfaces this one inherits from. Their properties are available on every consumer of this interface.

API

Properties

Every property declared by this interface, with its type, optionality and default.

'slice-label'
(bindings: { category: string value: number formatted: string color: string index: number visible: boolean }) => any
Replace the label rendered on / beside each slice. Receives the category name, raw value, formatted value, the resolved slice colour, the slice index and its visibility state.

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Custom slice label on a funnel chart

vue