Remove unused values in data list

The size of xLabels is 5, but the size of array on getData is 7.
I changed 7 to 5 one on getData.
It is more clear.