Ensure presence of a non-zero value in @chartvals

This avoids a division by zero later.