diff --git a/_posts/plotly_js/maps/choropleth-maps/2015-08-11-US-pop-by-state-choropleth.html b/_posts/plotly_js/maps/choropleth-maps/2015-08-11-US-pop-by-state-choropleth.html index dc4755bcf..849ba1776 100644 --- a/_posts/plotly_js/maps/choropleth-maps/2015-08-11-US-pop-by-state-choropleth.html +++ b/_posts/plotly_js/maps/choropleth-maps/2015-08-11-US-pop-by-state-choropleth.html @@ -7,10 +7,15 @@ arrangement: horizontal --- -d3.csv('https://raw.githubusercontent.com/plotly/datasets/master/2014_usa_states.csv', function(err, rows){ - function unpack(rows, key) { -return rows.map(function(row) { return row[key]; }); -} +d3.csv('https://raw.githubusercontent.com/plotly/datasets/master/2014_usa_states.csv') + .then(function(rows) { + function unpack(rows, key) { + return rows.map(function(row) { return row[key]; }); + } + + // hier kannst du deine weitere Verarbeitung starten + }) + var data = [{ type: 'choropleth', locationmode: 'USA-states',