I have this sample code below
<%= bar_chart [["Data 1", 20],["Data 2", 30]] %>
which will render the following bar