'Location', 'Parent', 'Market trade volume (size)', 'Market increase/decrease (color)''Global', 'null', 0, 0'America', 'Global', 0, 0'Europe', 'Global', 0, 0'Asia', 'Global', 0, 0'Australia', 'Global', 0, 0'Africa', 'Global', 0, 0'Brazil', 'America', 11,10'USA', 'America', 52,31'Mexico', 'America', 24,12'Canada', 'America', 16,-23'France', 'Europe', 42,-11'Germany', 'Europe', 31,-2'Sweden', 'Europe', 22,-13'Italy', 'Europe', 17,4'UK', 'Europe', 21,-5'China', 'Asia', 36,4'Japan', 'Asia', 20,-12'India', 'Asia', 40,63'Laos', 'Asia', 4, 34'Mongolia', 'Asia', 1, -5'Israel', 'Asia', 12,24'Iran', 'Asia', 18,13'Pakistan', 'Asia', 11,-52'Egypt', 'Africa', 21,0'S. Africa', 'Africa', 30,43'Sudan', 'Africa', 12,2'Congo', 'Africa', 10,12'Zaire', 'Africa', 8, 10]<html> <head> <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> <script src="papaparse.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <script type="text/javascript"> google.charts.load('current', {'packages':['treemap']}); google.charts.setOnLoadCallback(drawChart); function drawChart() { var csvfile = "data.csv"; $.get(csvfile, function (data) { var csvdata = Papa.parse(data); var alpha = google.visualization.arrayToDataTable(csvdata.data,false); console.log(alpha); tree = new google.visualization.TreeMap(document.getElementById('chart_div')); tree.draw(alpha, { minColor: '#f00', midColor: '#ddd', maxColor: '#0d0', headerHeight: 15, fontColor: 'black', showScale: true }); });
} </script> </head> <body> <div id="chart_div" style="width: 900px; height: 500px;"></div> </body></html>['Location', 'Parent', 'Market trade volume (size)', 'Market increase/decrease (color)']
['Global', null, 0, 0]
['America', 'Global', 0, 0]
['Europe', 'Global', 0, 0]
--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/02790c2d-1918-4173-a4cd-2fb897d966d5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Daniel,I made the null in the data set unquoted and now it throws the following error:Failed to find row with id " 'Global'".
--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/d1ab1e01-4d21-46c9-a11e-c0ebcb295c7e%40googlegroups.com.
Location,Parent,Markettradevolume(size),Marketincrease/decrease(color)Global,null,0,0America,Global,0,0Europe,Global,0,0Asia,Global,0,0Australia,Global,0,0Africa,Global,0,0Brazil,America,11,10USA,America,52,31Mexico,America,24,12Canada,America,16,-23France,Europe,42,-11Germany,Europe,31,-2Sweden,Europe,22,-13Italy,Europe,17,4UK,Europe,21,-5China,Asia,36,4Japan,Asia,20,-12India,Asia,40,63Laos,Asia,4,34Mongolia,Asia,1,-5Israel,Asia,12,24Iran,Asia,18,13Pakistan,Asia,11,-52Egypt,Africa,21,0S.Africa,Africa,30,43Sudan,Africa,12,2Congo,Africa,10,12Zaire,Africa,8,10--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/79e7b61f-b051-47cb-a8c5-b7e190c17685%40googlegroups.com.