Made graphs more dynamic by including them in a associative array,
(important update for dynamic metrics)