Do you need to create a set of points all at once which will draw the graph or do you need to generate a sequence of points over time to build it up continuously?
Whichever is the answer the first thing to do is to decide on the mathematical formula that will determine the point values. That is obviously not a node-red question.