Skip to main content

VictoryMultiLabelableProps

A set of props available to components that can display multiple labels.

Inherited Props

VictoryLabelableProps

Props


labels

type: string[] | number[] | function

The labels prop defines the labels that will appear above each point. This prop should be given as an array or as a function. When given as a function, labels will be called with a single argument: an object containing all the props supplied to the label component. A full list of props that will be passed to VictoryLabel is given here.

Common Usage

  • labels={["first", "second", "third"]}
  • labels={({ datum }) => datum.y}
Live View
Loading...
Live Editor