The call of the function 'getchartData' is with a lower case 'c' and the name of the function has a high case 'C'.