require 'daru/view' Daru::View.plotting_library = :googlecharts # Since we want to use more features of google chart using google data table. Here v and f (formatters) is used. # These can't be used in dataframe/vectors and using data array . # Hence directly generating the google data table from the options cols and rows. opts = { cols: [{id: 'Name', label: 'Name', type: 'string'}, {id: 'Manager', label: 'Manager', type: 'string'}, {id: 'ToolTip', label: 'ToolTip', type: 'string'}, ], rows: [ {c:[{v:'Mike', f:'Mike