rx.data
helper function to generate a data array from a x, y, error_x, and error_y list.data = rx.data(
"error_bar",
x=[1, 2, 3, 4, 5],
y=[1, 2, 3, 4, 10],
error_x=[0.1, 0.2, 0.3, 0.4, 0.5],
error_y=[0.1, 0.2, 0.3, 0.4, 0.5],
)
data = [
{"x": 1, "y": 1, "error_x": 0.1, "error_y": 0.1},
{"x": 2, "y": 2, "error_x": 0.2, "error_y": 0.2},
{"x": 3, "y": 3, "error_x": 0.3, "error_y": 0.3},
{"x": 4, "y": 4, "error_x": 0.4, "error_y": 0.4},
{"x": 5, "y": 10, "error_x": 0.5, "error_y": 0.5},
]
rx.error_bar
component.rx.chart(
rx.error_bar(
data=rx.data(
"error_bar",
x=[1, 2, 3, 4, 5],
y=[1, 2, 3, 4, 10],
error_x=[0.1, 0.2, 0.3, 0.4, 0.5],
error_y=[0.1, 0.2, 0.3, 0.4, 0.5],
),
),
)
Display a victory errorbar.