Reflex Logo

Intro

Gallery

Hosting

Components

New

Learn

Components

API Reference

Onboarding

Library

/

Graphing

/

Reference

rx.recharts.scatter_chart(
    rx.recharts.scatter(
        data=data, fill="#8884d8", name="A"
    ),
    rx.recharts.reference_area(
        x1=150,
        x2=180,
        y1=150,
        y2=300,
        fill="#8884d8",
        fill_opacity=0.3,
    ),
    rx.recharts.x_axis(
        data_key="x", name="x", type_="number"
    ),
    rx.recharts.y_axis(
        data_key="y", name="y", type_="number"
    ),
    rx.recharts.graphing_tooltip(),
)

A ReferenceLine component in Recharts.

PropTypeDescriptionValues
stroke_widthint

The width of the stroke.

x_axis_idUnion

The id of x-axis which is corresponding to the data.

y_axis_idUnion

The id of y-axis which is corresponding to the data.

xstr

If set a string or a number, a vertical line perpendicular to the x-axis specified by xAxisId will be drawn. If the specified x-axis is a number axis, the type of x must be Number. If the specified x-axis is a category axis, the value of x must be one of the categorys, otherwise no line will be drawn.

ystr

If set a string or a number, a horizontal line perpendicular to the y-axis specified by yAxisId will be drawn. If the specified y-axis is a number axis, the type of y must be Number. If the specified y-axis is a category axis, the value of y must be one of the categorys, otherwise no line will be drawn.

if_overflowLiteral

Defines how to draw the reference line if it falls partly outside the canvas. If set to 'discard', the reference line will not be drawn at all. If set to 'hidden', the reference line will be clipped to the canvas. If set to 'visible', the reference line will be drawn completely. If set to 'extendDomain', the domain of the overflown axis will be extended such that the reference line fits into the canvas.

is_frontbool

If set true, the line will be rendered in front of bars in BarChart, etc.

Valid Children

  • Label

A ReferenceDot component in Recharts.

PropTypeDescriptionValues
x_axis_idUnion

The id of x-axis which is corresponding to the data.

y_axis_idUnion

The id of y-axis which is corresponding to the data.

xstr

If set a string or a number, a vertical line perpendicular to the x-axis specified by xAxisId will be drawn. If the specified x-axis is a number axis, the type of x must be Number. If the specified x-axis is a category axis, the value of x must be one of the categorys, otherwise no line will be drawn.

ystr

If set a string or a number, a horizontal line perpendicular to the y-axis specified by yAxisId will be drawn. If the specified y-axis is a number axis, the type of y must be Number. If the specified y-axis is a category axis, the value of y must be one of the categorys, otherwise no line will be drawn.

if_overflowLiteral

Defines how to draw the reference line if it falls partly outside the canvas. If set to 'discard', the reference line will not be drawn at all. If set to 'hidden', the reference line will be clipped to the canvas. If set to 'visible', the reference line will be drawn completely. If set to 'extendDomain', the domain of the overflown axis will be extended such that the reference line fits into the canvas.

is_frontbool

If set true, the line will be rendered in front of bars in BarChart, etc.

Valid Children

  • Label

A ReferenceArea component in Recharts.

PropTypeDescriptionValues
strokestr

Stroke color

fillstr

Fill color

fill_opacityfloat

The opacity of area.

x_axis_idUnion

The id of x-axis which is corresponding to the data.

y_axis_idUnion

The id of y-axis which is corresponding to the data.

x1Union

A boundary value of the area. If the specified x-axis is a number axis, the type of x must be Number. If the specified x-axis is a category axis, the value of x must be one of the categorys. If one of x1 or x2 is invalidate, the area will cover along x-axis.

x2Union

A boundary value of the area. If the specified x-axis is a number axis, the type of x must be Number. If the specified x-axis is a category axis, the value of x must be one of the categorys. If one of x1 or x2 is invalidate, the area will cover along x-axis.

y1Union

A boundary value of the area. If the specified y-axis is a number axis, the type of y must be Number. If the specified y-axis is a category axis, the value of y must be one of the categorys. If one of y1 or y2 is invalidate, the area will cover along y-axis.

y2Union

A boundary value of the area. If the specified y-axis is a number axis, the type of y must be Number. If the specified y-axis is a category axis, the value of y must be one of the categorys. If one of y1 or y2 is invalidate, the area will cover along y-axis.

if_overflowLiteral

Defines how to draw the reference line if it falls partly outside the canvas. If set to 'discard', the reference line will not be drawn at all. If set to 'hidden', the reference line will be clipped to the canvas. If set to 'visible', the reference line will be drawn completely. If set to 'extendDomain', the domain of the overflown axis will be extended such that the reference line fits into the canvas.

is_frontbool

If set true, the line will be rendered in front of bars in BarChart, etc.

Valid Children

  • Label
← RadarchartScatterchart →

Did you find this useful?

HomeGalleryChangelogIntroductionHosting