first demonstration of graphing using canvas element