{
const rows = await csv("https://raw.githubusercontent.com/plotly/datasets/master/2010_alcohol_consumption_by_country.csv");
var data = [{
type: 'choropleth',
locationmode: 'country names',
locations: unpack(rows, 'location'),
z: unpack(rows, 'alcohol'),
text: unpack(rows, 'location'),
autocolorscale: true
}];
var layout = {
title: 'Pure alcohol consumption among adults (age 15+) in 2010',
width: width,
height: width * 0.6,
geo: {
projection: {
type: 'robinson'
}
}
};
const div = DOM.element('div');
Plotly.plot(div, data, layout, {showLink: false});
return div;
}