I declare an am4charts.XYChart chart globally and dynamically add some stacked series and then assign data via a function that will be called each time data is updated. The