Parametricized visualization code for metrics.