Skip to main content

Error Bar

Error Bars are used to represent the variability or uncertainty in a set of data and are often used with bar, line, and scatter plots. Error bars can be used to show standard deviation, standard error, confidence intervals, or any other statistical measure.

Basics

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

Live View
Loading...
Live Editor

Error Bars - Horizontal

Error Bars can be rendered horizontally by setting the horizontal prop to true. This prop can be applied to either VictoryChart or VictoryBoxPlot.

Live View
Loading...
Live Editor

Error Bars - Error Formats

Error bars can be customized by providing functions to the errorX and errorY props. These functions should return the error value for each data point.

Live View
Loading...
Live Editor

Error Bars - Labels

Error Bars can be labeled by setting the labels prop to a function that returns a string.

Live View
Loading...
Live Editor

Error Bars - Tooltips

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

Live View
Loading...
Live Editor

Error Bars - Styles

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

Live View
Loading...
Live Editor

Error Bars - 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

Standalone Rendering

Error Bars 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