D3js starter using Lit, Vite, TS
Started with the Lit template, then added d3.
Command Sequence:
npm create vite@latest d3lit -- --template lit-ts
cd d3lit
npm install
Note: tested here to make sure it ran out of the box.
npm install d3-selection --save
npm install @types\d3-selection --save
- Created d3-component folder and contents
- added d3-importer
- modified index.html to load d3-component module
- thinned down index.css
npm run dev
Good luck!