When grouping a graph view by a selection field, the labels on x axis were the selection values themselves (not their corresponding label). This issue was only present if there was only one group by field. In this case, the attribute `grouped_on` is not an array but a string containing the field name. This case wasn't correctly handled. Note that this issue is not present in the new views (from saas-16). Closes #19790