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/chartdatamultline_chart.json3000npm inpm run devcargo runThe frontend is implemented in SvelteKit 5, d3js and bootstrap. It works :-).
npm inpm run dev