When 'auto', actions are enabled, but some associated UI is only displayed after the user enters a valid action. When true or false, actions are completely enabled or disabled. See Image Uploads for more details.Īllow the creation of folders in the expressions listĪllow the creation of text notes in the expressions listĪllow the creation of sliders in the expressions listĪllow the use of Actions. Specify custom processing for user-uploaded images. Limit the size of an expression to 500 LaTeX tokens Show Points of Interest (POIs) as gray dots that can be clicked onĪllow tracing curves to inspect coordinates, and showing point coordinates when clickedĪdd a subtle 1px gray border around the entire calculatorĭisable user panning and zooming graphpaper Show the bar on top of the expressions list If a default state is set, show an onscreen reset button Show the settings wrench, for changing graph display. Options is an optional object that specifies features that should be included or excluded. The object returned is a Desmos.GraphingCalculator object, which exposes methods for setting expressions, changing the viewport, etc. Var calculator = Desmos.GraphingCalculator(elt) Constructor constructor GraphingCalculator( element, )Ĭreates a calculator object to control the calculator embedded in the DOM element specified by element.Įxample: var elt = document.getElementById( 'my-calculator') The basic structure of the API is an embeddable GraphingCalculator, which is the page element which will display your axes, grid-lines, equations, and points. To see information about the size of the API file, the change logĬontains the gzipped size for each version. For production use, you should obtain your own API key and supply it as the apiKey parameter in the script URL in step 1. Preparing for production: In this example, we used the demo API key dcb31709b452b1cf9dc26972add0fda6. See examples/parabola.html to see this example live.