2. Function graph

Note 2. The following customizations are needed to draw standard Cartesian x-y plots.
1. Create the Cartesian vertical and horizontal axis with custom tick marks and labels. The x-axis label is drawn at specified location below the axis. The y-axis label is drawn at the top to the left position of the axis. Highlight of the axes is disabled.
2. Create custom grid setting. The setting for JXG.Options.grid.gridX needs to be defined before initBoard(). This option allows different grid setting for each axis depending on the requirements of the function display.
3. Custom copyright text is configured with local css style formatting (.copyright).
4. If shorthand notation is desired, use JessieScript shorthand notations (from version 0.99.3). Two more javascript files are needed: geonextreader.js and geonextreader.js to parse the new mathematic-like syntax (very close to the way geometric formula is written). Be aware of the following two major issues: 1. setProperty function does not seem to parse elements in lower hiearchy directly (label of points). 2. Standard jsxgraph calls (line, grid, etc.) may not work properly if being called after the JessieScript is deployed.
5. Even though ‘line’ can have associated label, its usefulness is limited. It is best to draw a line and use ‘text’ to position the label for more flexibility. Remember to use small strokeOpacity value to have lighter shade.
6. Enclose MathJax symbols in pairs of $\text{\$}$ when they are part of a text string in ‘text’. For example $\$$f(x)=2x$\$$. If the points are not meant to be draggable, set its property to fixed:true. Set highlight:false to disable highlighting. The property needs to be set for both the geometric element and its label. Each backslash within a pair of quotes in Javascript need to be coded as double backslashes (\\). Each backslash within a MathJax expression is coded as four backslashes.
7. Insert arbitrary tick labels (x=-2, and y=-1) to indicate the position of asymptotes.
8. Use single dollar sign pair for MathJax in-line math, such as $f(x)=\frac{3x-2}{x+2}-4$. Use double dollar sign pair for display math, such as $$f(x)=\frac{3x-2}{x+2}-4$$