BarChartView
ā ļø This type is unstable and may change significantly in a way that the data won't be backwards compatible. A bar chart view.
Properties properties
plot_legend
plotlegend
Configures the legend of the plot.
corner
: To what corner the legend is aligned.visible
: Whether the legend is shown at all.
background
background
Configures the background of the plot.
color
: Color used for the background.show_grid
: Should the grid be drawn?
API reference links api-reference-links
Example example
Use a blueprint to create a BarChartView. use-a-blueprint-to-create-a-barchartview
"""Use a blueprint to show a bar chart."""
import rerun as rr
import rerun.blueprint as rrb
rr.init("rerun_example_bar_chart", spawn=True)
rr.log("bar_chart", rr.BarChart([8, 4, 0, 9, 1, 4, 1, 6, 9, 0]))
# Create a bar chart view to display the chart.
blueprint = rrb.Blueprint(rrb.BarChartView(origin="bar_chart", name="Bar Chart"), collapse_panels=True)
rr.send_blueprint(blueprint)