Widgets

BarChart

BarChart

BarChart control. Build it with the bar_chart helper.

Example

bar_chart(
  width: 240,
  height: 120,
  on_event: ->(event) {}
)

Properties

  • min_y — Sets the min y property.
  • max_y — Sets the max y property.
  • min_x — Sets the min x property.
  • max_x — Sets the max x property.
  • groups — Sets the groups property.
  • left_axis — Sets the left axis property.
  • right_axis — Sets the right axis property.
  • top_axis — Sets the top axis property.
  • bottom_axis — Sets the bottom axis property.
  • horizontal_grid_lines — Sets the horizontal grid lines property.
  • vertical_grid_lines — Sets the vertical grid lines property.
  • border — Border definition.

Common layout and animation properties

  • width — Fixed width in logical pixels.
  • height — Fixed height in logical pixels.
  • tooltip — Text shown on hover/long-press.

Events

  • on_event — Fired on event.

Reference

  • Family: materials
  • Widget type: barchart
  • Helpers: bar_chart, barchart