Skip to main content

VictoryScatter

info

For examples of VictoryScatter in action, visit the Scatter Chart examples.

Inherited Props

Component Props


bubbleProperty

type: stringdefault: "z"

The bubbleProperty prop indicates which property of the data object should be used to scale data points in a bubble chart. If a bubbleProperty is given, size and symbol props will be ignored. Bubble charts always render circular points.

Live View
Loading...
Live Editor

data

type: object[]

VictoryScatter uses the standard data prop. However, it also will preferentially use symbol, size, and label properties supplied via data objects.


eventKey

type: string | integer | string[] | Function

VictoryScatter uses the standard eventKey prop to specify how event targets are addressed. This prop is not commonly used. Read about the eventKey prop in more detail here


events

type: object[]

VictoryScatter uses the standard events prop. Read about it in more detail here

See the [Events Guide][] for more information on defining events.

Live View
Loading...
Live Editor

maxBubbleSize

type: number

The maxBubbleSize prop sets an upper limit for scaling data points in a bubble chart. If not given, this prop will be calculated based on the width, height, and padding of the component.

maxBubbleSize={25}

minBubbleSize

type: number

The minBubbleSize prop sets a lower limit for scaling data points in a bubble chart. If not given, this prop will be calculated based on the calculated maxBubbleSize.

minBubbleSize={5}

size

type: number | Function

The size prop determines how to scale each data point. When this prop given as a function, it will be called for each point with the props corresponding to that point. If size is not specified, either in props or in a theme, it will default to 1. size may also be set directly on each data object.

Live View
Loading...
Live Editor

style

type: { parent: object, data: object, labels: object }

VictoryScatter uses the standard style prop. Read about it in detail here

default (provided by default theme): See [grayscale theme][] for more detail

Live View
Loading...
Live Editor

symbol

type: Function | Optionsdefault: "circle"

The symbol prop determines which symbol should be drawn to represent data points. Options are: "circle", "cross", "diamond", "plus", "minus", "square", "star", "triangleDown", "triangleUp". When this prop is given as a function, it will be evaluated for each point with the props corresponding to that point. If no symbol prop is specified, a circle will be rendered. symbol may also be set directly on each data object.

Live View
Loading...
Live Editor

Like this project? You'll love working with us.

Contact us to learn more about our full range of services and offerings.

Learn More