Home forums Feature Requests & Feedback How to plot the graph based on equation using canvasjs spline?

Tagged: 

This topic contains 5 replies, has 2 voices, and was last updated by  prasanth 3 months, 1 week ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #12081

    prasanth
    Member

    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..

    #12094

    Vishwas R
    Keymaster

    Prasanth,

    You can store all generated dataPoints, according to equation, in an array and assign it to chart dataPoints. Here is an example.

    #12095

    prasanth
    Member

    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…

    #12096

    Vishwas R
    Keymaster

    Prasanth,

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

    #12097

    prasanth
    Member

    Its working nice.i have one more how to ellipse shape graph draw in canvas its possible or not please helpme and Thank you.

    #12156

    prasanth
    Member

    How to plot the ellipse graph in canvasjs its possible are not.please helpme .

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.