I am working on implementing graphs in rails app. There is a specific data format requirement. I am have the data as below:
["counting", [50, 50, 50, 50]]
The required format is
{:name=>"counting", :data=>[350, 350, 250, 150]}
Please help me achieve this.