Refactoring for graph widget models and views

Currently, graph widgets have a set of `GraphMetricModel`s, each corresponding to a metric. These models currently hold the colour information, clearly a view-specific piece of information. Refactoring is needed to keep this colour information on the view side.