ARTICLE AD BOX
I have multiple adaptive spectrograms that renders in different sizes with D3 xScale and yScale set to state variables/numbers which changes when I detect a different screen size. Every time I change the scaling to a 4k scaling there will be a heap out of memory issue. This does not happen with the full hd scaling. I have narrowed it down to the spectrogram issue. When rendering only 2 or 3 spectrograms it works fine. Seems to be the number of spectrograms. I also tried increasing the heap limit but issue still persists.
New contributor
Joshua Leow is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
1

Please read How to Ask and edit your question accordingly. It'd be great if someone could reproduce the issue so please narrow it down to a minimal reproducible example you include in your edit (that would also be needed if you were to report a bug to D3.js or ask the developers about the issue I'm sure). Thanks, and welcome to Stack Overflow!
2026-01-25 06:38:16 +00:00
Commented 21 mins ago