generalise functionality of metricsgraphics dashboard