The set of function types the learner can choose from when plotting.
The correct answer; used to score the learner's plotted function.
Visual configuration for the coordinate plane.
An optional background image displayed behind the graph.
Optionalbottom?: numberVertical offset from the bottom of the graph in pixels.
Optionalheight?: numberHeight of the image in pixels.
Optionalleft?: numberHorizontal offset from the left edge of the graph in pixels.
Optionalscale?: numberScale factor applied to the image.
Optionalurl?: string | nullURL of the background image, or null/undefined if none.
Optionalwidth?: numberWidth of the image in pixels.
Optionalbox?: [number, number]The [width, height] of the graph canvas in pixels.
OptionaleditableSettings?: ("graph" | "snap" | "image" | "measure")[]Which graph settings are editable in the editor UI.
OptionalgridStep?: [number, number]The [x, y] spacing between grid lines.
The [x-axis, y-axis] labels.
Which markings to show on the graph (axes, grid, graph, or none).
The visible [x-range, y-range] of the coordinate plane.
The label for the ruler overlay (currently always empty string).
The number of tick marks on the ruler overlay.
OptionalshowProtractor?: booleanWhen true, a protractor overlay is shown on the graph.
OptionalshowRuler?: booleanWhen true, a ruler overlay is shown on the graph.
OptionalshowTooltips?: booleanWhen true, coordinate tooltips are shown on hover.
OptionalsnapStep?: [number, number]The [x, y] snap increment for interactive elements.
The [x, y] distance between labeled tick marks.
Optionalvalid?: boolean | stringWhether the graph configuration is valid. Can be false or an error message string.
Options for the Grapher widget. Defines the available function types, the correct answer, and the visual graph configuration.