← Back

BarChart

[basic]

Block-character bar chart with orientation toggle

BarChart Demo

Block-character bar chart with orientation toggle

For the full interactive experience:

$ mix raxol.playground

Code
series = [%{name: "Weekly", data: model.data, color: :cyan}]

chart_element =
  bar_chart(
    series: series,
    width: effective_width(model, @default_chart_width),
    height: @chart_height,
    orientation: model.orientation,
    show_values: model.show_values
  )
demo j/k prev/next / focus demo esc back 26/42 demos