add local storage to pie chart