Skip to main content

Scatter

Scatter charts render a dataset as a series of points.

Basic

See the full API here. Typically composed with VictoryChart to create full charts.

Live View
Loading...
Live Editor

Scatter Charts - Labels

Add labels to charts by setting the labels prop to the name of a property in the dataset, or a function that returns the label value. You can customize the display of the labels by using the labelComponent prop. VictoryScatter will also preferentially use the label property from the data object.

Live View
Loading...
Live Editor

Custom Labels

Custom labels can be rendered by using the labelComponent prop. See the VictoryLabel API for more information.

Live View
Loading...
Live Editor

Scatter Charts - Tooltips

Tooltips can be added by using a VictoryTooltip component as the labelComponent.

Live View
Loading...
Live Editor

Scatter Charts - Axis

Scatter charts support all four quadrants by default. You can customize the domain of the chart by setting the domain prop on VictoryChart or VictoryScatter.

Live View
Loading...
Live Editor

Scatter Charts - Horizontal

Scatter charts can be rendered with a flipped axis by setting the horizontal prop to true. This prop can be applied to either VictoryChart or VictoryLine.

Live View
Loading...
Live Editor

Scatter Charts - Null Data

Scatter charts can handle null data points by setting the data prop to an array of objects with x and y values. Null data points will be skipped.

Live View
Loading...
Live Editor

Scatter Charts - Bubble

Scatter charts can render a dynamic bubble size by setting the bubbleProperty to a property of the data object.

Live View
Loading...
Live Editor

Scatter Charts - Symbols

Scatter chart bubbles can be customized by setting the symbol prop.

Live View
Loading...
Live Editor

Scatter Charts - Custom Icons

Scatter chart bubbles can also leverage SVG elements such as those from icon libraries like react-icons by using the dataComponent property.

Live View
Loading...
Live Editor

Scatter Charts - Animation

Scatter charts support all four quadrants by default. You can customize the domain of the chart by setting the domain prop on VictoryChart or VictoryScatter.

Live View
Loading...
Live Editor

Scatter Charts - Styles

Chart styling can be customized by using the theme or overriding the style prop on the component.

Live View
Loading...
Live Editor

Scatter Charts - Events

Events can be handled by passing an array of event objects to the events prop on the component. Each event object should specify a target and an eventHandlers object. See the events guide for more information.

Live View
Loading...
Live Editor

Polar Scatter Charts

Line charts can be rendered in polar coordinates by setting the polar prop to true and using VictoryPolarAxis components.

Live View
Loading...
Live Editor

Standalone Rendering

Scatter charts can be rendered outside a VictoryChart.

Live View
Loading...
Live Editor

They can also be embeded in other SVG components by using the standalone prop.

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