prometheus/promdash — pull request #42 by juliusv (2014-01-20 16:19:57+00:00)
Title: Don't pass in entire global config just for the aspect ratio.

Passing in the entire globalConfig object from the parent scope makes the graph
widget less reusable (closely tied to the structure of that global config) and
also makes it less clear what the graph really needs from it.

Since the aspect ratio is now passed as a copy through multiple scope
layers (dashboard -> graph -> graph_chart), we need to redraw the graphs
only after the corresponding Angular cycle has completely, so instead of
calling `redrawGraphs` when changing the ratio select, I call
`nextCycleRedraw` now.