Ionic and graphics math library


Hello Guys !
I have to realize an application for student of my school. I want to use ionic to get there because I find it easy and powerful. My application is to provide a question - answer list and a page to draw 2D curves. For the plotted curves, the application given a math function to draw on the screen user with the mouse and the application does the comparison.
My problem is that I do not know what framework to use with ionic to realize the application. I tried with Phaser but it gives me a lot of problem .

Now can you tell me what framework should I use?
thank you in advance