Skip to content Skip to sidebar Skip to footer

Google Chart With Csv Data: Columns Error

I'm currently attempting to utilize google charts as my method of showing live data on our site. I'm hoping to be able to load CSV data files into the chart and have it show 3 indi

Solution 1:

I realized I was still attempting to parse the CSV string as only having two parameters

var arrayData = $.csv.toArrays(csvString, {onParseValue: $.csv.hooks.castToScalar});

I've parsed the second line of entry using the same syntax here

var arrayData = $.csv.toArrays(csvString, {onParseValue: $.csv.hooks.castToScalar}, {onParseValue: $.csv.hooks.castToScalar});

Might not have been anything new to some of you, maybe it will help someone else.

Post a Comment for "Google Chart With Csv Data: Columns Error"