A brushable and zoomable multi line chart in SvelteKit & D3js
let brushElement;
code snippet.Axis
components are taken from: https://datavisualizationwithsvelte.com/basics/svelte-5-d3-exampleYou need a server that provides some data. there are 2 servers available:
Or you implement your own server.
Requirements:
/GET
path /api/chartdata
multline_chart.json
3000
npm i
npm run dev
cargo run
The frontend is implemented in SvelteKit 5, d3js and bootstrap. It works :-).
npm i
npm run dev