The question is not quite on the topic, but it is partially connected with programming.
I am looking for a service that accepts js code at the textarea input, for example:
return (x) => x * x; Or:
return [ (x) => x * x, (x) => x * 2, ]; Or:
const func = (x) => x * x; return func; And at the output he draws a graph (s), based on what returns return.
In short, I am looking for a graph builder with full JS support.
PS I understand that this can be done on your own, but it is a matter of time and cycling. Perhaps there is a ready-made solution that I can not find.
PSS Any Google search simply leads to the JS library.
In theory, the link is simple: we pull the data out of the field, execute the extracted code and get the function , use any library to build the graphs, apply the function to it. Maybe someone already did it and did it better than I would have.