we change the last data, so that percentual value plus the other values can be equal to 100

We create a pie chart, but the sum of percentage was higher than 100. So we decide to change the last data value, they will be the substraction of 100 less the sum of the other data.