Scroll down into the examples for some plots with lots of points: https://wwwtyro.github.io/candygraph/examples/dist/
Or that they try to emulate the non-intuitive Matlab plotting interface.
https://github.com/epezent/implot
Java: https://github.com/SpaiR/imgui-java
Also for rust: https://www.egui.rs/#Demo (Open Plot demo)
For web you'd want to compile for WASM. I imagine you could just make the graphs WASM and embed in existing DOM.
https://github.com/holoviz/datashader is a good one in the Python ecosystem.
While I can't speak for millions of data points, generating a gyroscope plot with x, y, z, where each gyro axis is 400k+ samples is fine performance wise. This is generating a static, interactive html. Zooming etc is fine on my M1 MacbookPro 13" - delay when zooming in this specific case is maybe 0.5secs. The html-file is 60mb+.