Skip to main content

Area

Area charts are used for visualizing trends in data over a continuous interval while emphasizing the magnitude of the values.

Basic

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

Live View
Loading...
Live Editor

Area Charts - Horizontal

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

Live View
Loading...
Live Editor

Area Charts - Interpolation

Area charts can use interpolation to smooth the line between data points. See the full list of interpolation options.

Live View
Loading...
Live Editor

Area Charts - Null Data

Area 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

Area Charts - Discontinuous Scale

Area charts can be rendered with a discontinuous scale by using the scaleDiscontinuous plugin from @d3fc/d3fc-discontinuous-scale.

Live View
Loading...
Live Editor

Area Charts - Plotting

Area charts can render math functions as data by supplying a function to the y prop.

Live View
Loading...
Live Editor

Area Charts - Combined

Area charts can be combined into the same chart. Note that the order of the components will determine the rendering order.

Live View
Loading...
Live Editor

Area Charts - Baseline

Area charts can be rendered with a baseline for dependent values by setting the y0 property on each data point.

Live View
Loading...
Live Editor

Area Charts - Stacked

Area charts can be stacked using the VictoryStack component. This will automatically adjust the y0 property for each data point and apply a colorScale.

Live View
Loading...
Live Editor

Area 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.

Live View
Loading...
Live Editor

Area Charts - Tooltips

VictoryArea only renders a single element to represent an entire dataset, so replacing its labelComponent with VictoryTooltip won't work as expected. Use VictoryVoronoiContainer to associate mouse position with the nearest data points.

Live View
Loading...
Live Editor

Area Charts - Animation

Charts can be animated by setting the animate prop. See the animations guide for more information.

Live View
Loading...
Live Editor

Area Charts - Styles

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

Live View
Loading...
Live Editor

Area Charts - Events

Events can be handled by passing an array of event objects to the events prop on the VictoryArea component. VictoryArea uses the special all key for the target prop to attach events to all data points. See the events guide for more information.

Live View
Loading...
Live Editor

Polar Area Charts

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

Live View
Loading...
Live Editor

Polar Area Charts - Radar

Area charts can be rendered in polar coordinates with a radar shape by setting the polar prop to true and using VictoryPolarAxis components.

Live View
Loading...
Live Editor

Standalone Rendering

Area 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