Reflex Logo

Intro

Gallery

Hosting

Components

New

Learn

Components

API Reference

Onboarding

Library

/

Graphing

/

Errorbar

An error bar is a line through a point on a graph, parallel to one of the axes, which represents the uncertainty or variation of the corresponding coordinate of the point.

rx.recharts.scatter_chart(
    rx.recharts.scatter(
        rx.recharts.error_bar(
            data_key="errorY",
            direction="y",
            width=4,
            stroke_width=2,
            stroke="red",
        ),
        rx.recharts.error_bar(
            data_key="errorX",
            direction="x",
            width=4,
            stroke_width=2,
        ),
        data=data,
        fill="#8884d8",
        name="A",
    ),
    rx.recharts.x_axis(data_key="x", name="x"),
    rx.recharts.y_axis(data_key="y", name="y"),
    rx.recharts.graphing_tooltip(),
    rx.recharts.legend(),
)

An ErrorBar component in Recharts.

PropTypeDescriptionValues
directionLiteral

The direction of error bar. 'x' | 'y' | 'both'

data_keyUnion

The key of a group of data which should be unique in an area chart.

widthint

The width of the error bar ends.

strokestr

The stroke color of error bar.

stroke_widthint

The stroke width of error bar.

Event Triggers

See the full list of default event triggers
← ComposedchartFunnelchart →

Did you find this useful?

HomeGalleryChangelogIntroductionHosting