import with clause => javascript

I’m reading the Observable D3 tutorial which uses the “with” clause with imports. I.e.
import {chart as chart1} with {values as data} from “@d3/histogram”

How do I translate to vanilla JS? I.e. I’d like to create a simple web page with this example but “with” is not Javascript.

1 Like

This is a feature of Observable JavaScript. The easiest way to get this working in vanilla JavaScript is to download or embed your notebook using our open-source runtime.