Home › forums › Using CanvasJS › Dynamic 2d graph
Tagged: Using CanvasJS
This topic contains 2 replies, has 2 voices, and was last updated by junjie213 4 years, 9 months ago.
I would like to reproduce an interactive math 2d graph that can changes when the user enter an input while the rest of the variables are fixed. (Eg: a bit like excel where you change the variable A and the graph changes – x and y axis points changes)
the graph(axis points) will change accordingly.
Link here: http://jsfiddle.net/QwZuf/79/
Please read the last section named Alternate way of setting / updating data. Hope this helps.
Hi Sunli, Thanks for the reply!
I’ve explored more and and able to produce the array of numbers when the user types in a number, however, i am confused on how to apply this array to the datapoints so that the graph will update accordingly.
demo here: http://jsfiddle.net/QwZuf/87/
You must be logged in to reply to this topic.