I have the following data structure:
@data = [['Year', 'Sales', 'Expenses', 'Profit'],
['2014', 1000, 400, 200],
['2015', 1170, 460, 250],
['2016', 660, 1120, 300],
['2017', 1030, 540, 350]]
and I want to display a column chart with Chartkick grouped by Year. I tried the following plan call in my Rails view:
<%= column_chart @data %>
but it show an empty chart. What's the way to group set of data?
This is what I get using plan Google Chart APIs.