Flask Python - Google Chart javascript is not working passing string as parameter in html page
arrayToDataTable
expects an array, not a string.
you could parse the string as JSON...
JSON.parse(my_string)var data2 = google.visualization.arrayToDataTable(JSON.parse(my_string));
but first, you will need to change all the single quotes...
['Month', ...
to double quotes...
["Month", ...