Broadcast Render vs Refresh


I have just upgraded to Grafana v5 and have a bit of javascript code that has stopped working.

The code is used to update the regex on a seriesoverride so that I can change the color of some of the lines in a graph panel and looks like this:

inj = top.angular.element(‘grafana-app’).injector()
dash = inj.get(‘dashboardSrv’).dash
dash.panels[“0”].seriesOverrides[1].alias = ‘abc’

Previously, when I called broadcast(‘render’) the chart would update however after updating to v5 this no longer happens. I can get it to work by using broadcast(‘refresh’) instead however this results in all of the data series being reloaded from the db which I would like to avoid if possible.

Any ideas/solution would be much appreciated!