How to make a script that draws graphs on Frame

Hey there! I’d like to make a script (local script) that can draw graphs on a Frame. But I have seen that nobody has ever made a post about this.

I’d like to draw it like the image below (only a example):

Your help is appreciated! Thank you. :slight_smile:

1 Like

Look into this beta resource:

If your not needing any curves, simple linear graphs, then you can just do this with frames and rotate them.

To do that, you would need to get the starting point and ending point of where you want the frame to be and then do some math to get its length and rotation.

definitely not recommended but if you are making a curve graph you should make an individual frame for each X’es

function f(x)
  return x^2
end

for x = 0, 10 do
  local y = f(x)
  -- create a dot, in the coordinate (x,y)
end

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.