Share with others: Link to this plot.
Controls and documentation
You can display a function in the plot by calling
It takes its parameters in any order. What an argument does depends on its type:
function: Plots the graph of that function.
It is called for each x value and has to return the corresponding y value.
"hsla(210, 50%, 50%, 0.25)"):
The graph will be drawn in that color (default
2): It is used as the line width in pixels for the graph (default
[10, 5]): It is used to dash lines of the graph.
The elements specify distances to alternately draw a line and a gap in pixels.