Hi i am using to canvasjs in spline graph but i want to draw the graph based on equation but i try to draw the multiple series lines in graph only using array data based plotting the graph .so how to plot the graph based on equation for example (y=x^2+1) based on equation how to draw the graph using canvasjs please help..

Its ok but i want to user type the equation for example algebra equation 1/5x + 2/15 = 1/7x + 4 based on equation how to draw the graph using canvasjs. please help me…

You can use JavaScript eval() function to evaluate an expression. According to user input expression generate dataPoints and render chart. Here is an example.