updated chart function, begining responsive functionality