2👍
✅
You need to invoke the building of the chart with Bar(data)
after you updated the data. Then the charts gets refreshed.
Source:stackexchange.com