data. addRow()

18 views
Skip to first unread message

Jai

unread,
Jun 18, 2017, 6:59:19 PM6/18/17
to Google Visualization API
Hello,

I`m trying add rows to a DataTable() but my column headers have spacing and special symbols like Meat/Poultry, Dairy Products, etc.,

var Data = new google.visualization.DataTable();
Data.addColumn('number', '[Meat/Poultry]');
Data.addColumn('number', '[Dairy Products]');

Data.addRow([DBdata[i].ShippingYear, DBdata[i].Confections, DBdata[i].Meat/Poultry, DBdata[i].Condiments, DBdata[i].Dairy Products]);

I can`t add column names which are different. Please help me to achieve this.

Thanks
Reply all
Reply to author
Forward
0 new messages