Is it possible to scale charts? I tried:
<script>
function graf(){
new RGraph.SVG.Bar({...}).wave();
}
const resizeObserver = new ResizeObserver((object) => {
console.dir('...' );//info if action is catch
object[0].target.innerHTML = '';//...optional no matter
graf();
});
resizeObserver.observe(document.getElementById('chart-container' ) );
</script>
Each time graf() is called again, the graph and its continer of SVG tag disappear from the HTML document. It doesn't matter whether innerHTML cleanup is used. Console.dir('...') is called but with no chart, it disappears. With listeners do the same. It doesn't matter if it's onmouseover etc.