Contacting API to add data to chart