Removing an unneeded iteration within 'chartGridTransform()'