Auto-refresh graph on editing

Requires https://gerrit.wikimedia.org/r/161893

Change-Id: I12f481c10576ffe53f60d820900dc0dd876902a1