← Back
BarChart
[basic]Block-character bar chart with orientation toggle
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
)