Plot({}) types and custom plots #297
OAGr
started this conversation in
Squiggle Improvement Proposal
Replies: 1 comment 5 replies
-
TradingView.com has had a similar adventure. They have an online functional language for scripting. Hmm. What a similarity. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem: Users often will want custom plots, for different purposes.
Recommended solution: We make one
type
in squiggle for Plot. This will basically just wrap a record, but be used specifically for plotting.The bottom is very-rough example syntax, we could get arbitrarily fancy about the allowed params.
Example Syntax:
In the rescript codebase, this will just be stored as some simple records.
All plot types returned by the user will be plotted, when in the playground. The calling function (our Typescript components) can decide what to do with this output.
Beta Was this translation helpful? Give feedback.
All reactions