I am trying to port ‘Asia Map’ by Daniel from bl.ock ff8448ace9d5d567390a to Observable.
I have tried porting both with different bits of the code segmented:
…as well as playing with the full code block:
I have tried variations on
var svg = d3.select(DOM.element('svg'))
.attr("width", width)
.attr("height", height);
return svg.node();
const context = DOM.context2d(width, height);
return context.canvas;
and
let container = DOM.element('div', { style: `width:${width}px;height:${width/1.6}px` });
return container
I (again) appeal to the community for help
And sorry that this is something of a repeated question. Slowly taking this all in.