add legends for multi-metrics and mult-group charts