I'm trying to serialize an Array to use with a Google Chart lib.
var data = google.visualization.arrayToDataTable([
['Task', 'Hours per Day'],
['Work', 11],
['Eat', 2],
['Commute', 2],
['Watch TV', 2],
['Sleep', 7]
]);
But when I tried to use KeyValuePair I can only use two types of data to my all collection and in the example above, the first Row has two strings. How can I render this information and convert to array to match the JS data ?
The following example creates a new, empty DataTable and then populates it manually with the same data as aboveand you'll see basically what you're trying to do