added canvas graph functionalities for math.