---
title: "BarChartView"
---
<!-- DO NOT EDIT! This file was auto-generated by crates/build/re_types_builder/src/codegen/docs/website.rs -->

⚠️ **This type is _unstable_ and may change significantly in a way that the data won't be backwards compatible.**
A bar chart view.

## Properties

### `plot_legend`
Configures the legend of the plot.

* `corner`: To what corner the legend is aligned.
* `visible`: Whether the legend is shown at all.
### `background`
Configures the background of the plot.

* `color`: Color used for the background.
* `show_grid`: Should the grid be drawn?

## API reference links
 * 🐍 [Python API docs for `BarChartView`](https://ref.rerun.io/docs/python/stable/common/blueprint_views#rerun.blueprint.views.BarChartView)

## Example

### Use a blueprint to create a BarChartView.

snippet: views/bar_chart

<picture data-inline-viewer="snippets/views/bar_chart">
  <source media="(max-width: 480px)" srcset="https://static.rerun.io/bar_chart_view/74fa45af3c7310b51cd283c37439ed8f8ca9356d/480w.png">
  <source media="(max-width: 768px)" srcset="https://static.rerun.io/bar_chart_view/74fa45af3c7310b51cd283c37439ed8f8ca9356d/768w.png">
  <source media="(max-width: 1024px)" srcset="https://static.rerun.io/bar_chart_view/74fa45af3c7310b51cd283c37439ed8f8ca9356d/1024w.png">
  <source media="(max-width: 1200px)" srcset="https://static.rerun.io/bar_chart_view/74fa45af3c7310b51cd283c37439ed8f8ca9356d/1200w.png">
  <img src="https://static.rerun.io/bar_chart_view/74fa45af3c7310b51cd283c37439ed8f8ca9356d/full.png">
</picture>


## Visualized archetypes

* [`BarChart`](../archetypes/bar_chart.md)
* [`Tensor`](../archetypes/tensor.md) (for 1D tensors)

