{
const data = await d3.csv(
'https://raw.githubusercontent.com/italia/covid19-opendata-vaccini/master/dati/consegne-vaccini-latest.csv',
d3.autoType
);
let fig = figure({ title: 'Figure title' });
let ax = fig.subplot({ title: 'Axes title' });
ax.bar(data, {
x: { field: 'area' },
y: { field: 'numero_dosi' },
hue: { field: 'fornitore', domain: ['Pfizer/BioNTech', 'Moderna'] }
});
return fig.create().node();
}