Have you tried using a listener on the chart? The you can wait to see upodates. Use the cordinates max and min, then scale the listened SVG update. Let me know if you find it helpful