Improve chart scale selection logic on chart group change.