Surprisingly, immediate mode graphing libraries work pretty well at this!
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.
cool!
another neat project based on Dear ImGui that i follow is https://github.com/epezent/implot.
i'm a bit of a timeseries enthusiast. if you need something for the web, check out https://github.com/leeoniya/uPlot
EDIT: sorry, didn't mean to highjack the thread :(, all glory to /u/facontidavide!