API Docs for: 0.99.4
Show:

# JXG.Options Class

Module: JXG

Options Namespace

These are the default options of the board and of all geometry elements.

## Properties

### anchor

Object

Anchor element Point, Text or Image of the text. If it exists, the coordinates of the text are relative to this anchor element.

Default: null

### anchorX

String

The horizontal alignment of the text. Possible values include 'left', 'middle', and 'right'.

Default: 'left'

### anchorY

String

The vertical alignment of the text. Possible values include 'top', 'middle', and 'bottom'.

Default: 'middle'

### Angle#orthoSensitivity

Number

Sensitivity (in degrees) to declare an angle as right angle. If the angle measure is inside this distance from a rigth angle, the orthoType of the angle is used for display.

Default: 1.0

• Angle#orthoType

### Angle#orthoType

String

Display type of the angle field in case of a right angle. Possible values are 'sector' or 'sectordot' or 'square' or 'none'.

Default: square

• Angle#orthoSensitivity

### Angle#radius

Number

Radius of the sector, displaying the angle.

Default: 0.5

### Angle#type

String

Display type of the angle field. Possible values are 'sector' or 'sectordot' or 'square' or 'none'.

Default: 'sector'

### attractors

Array

List of attractor elements. If the distance of the text is less than attractorDistance the text is made to glider of this element.

Default: empty

### Axis#label

Label

Attributes for the axis label.

### Axis#point1

Point

Attributes for first point the axis.

### Axis#point2

Point

Attributes for second point the axis.

### Axis#ticks

Ticks

Attributes for ticks of the axis.

### Bisector#point

Point

Attributes for the helper point of the bisector.

### Bisectorlines#line1

Line

Attributes for first line.

### Bisectorlines#line2

Line

Attributes for second line.

### Circle#center

Point

Attributes for center point.

### Circle#hasInnerPoints

Boolean

If true, moving the mouse over inner points triggers hasPoint.

Default: false

### Circle#label

Label

Attributes for circle label.

### Circle#label

Label

Attributes for circle label.

### Circle#point

Point

Attributes for center point.

### Circumcircle#center

Point

Attributes for center point.

### CircumcircleArc#center

Point

Attributes for center point.

### Conic#foci

Point

Attributes for foci points.

### cssClass

String

The precision of the slider value displayed in the optional text.

### Curve#curveType

String

The curveType is set in JXG.Curve#generateTerm and used in JXG.Curve#updateCurve. Possible values are

• 'none'
• 'plot': Data plot
• 'parameter': we can not distinguish function graphs and parameter curves
• 'functiongraph': function graph
• 'polar'
• 'implicit' (not yet)
Only parameter and plot are set directly. Polar is set with JXG.GeometryElement#setAttribute only.

Default: null

### Curve#doAdvancedPlot

Boolean

If true use a recursive bisection algorithm. It is slower, but usually the result is better. It tries to detect jumps and singularities.

Default: true

### Curve#doAdvancedPlotOld

Boolean

If true use the algorithm by Gillam and Hohenwarter, which was default until version 0.98.

Default: false

### Curve#handDrawing

Boolean

The data points of the curve are not connected with straight lines but with bezier curves.

Default: false

### Curve#numberPointsHigh

Number

Number of points used for plotting triggered by up events in case undefined is false.

Default: 1600

### Curve#numberPointsLow

Number

Number of points used for plotting triggered by move events in case undefined is false.

Default: 400

### Curve#RDPsmoothing

Boolean

Apply Ramer-Douglas-Peuker smoothing.

Default: false

### digits

Number

Used to round texts given by a number.

Default: 2

### disabled

Boolean

Control the attribute "disabled" of the HTML input field.

Default: false

### disabled

Boolean

Control the attribute "disabled" of the HTML button.

Default: false

### disabled

Boolean

Control the attribute "disabled" of the HTML checkbox.

Default: false

### display

String

Determines the rendering method of the text. Possible values include 'html' and 'internal.

Default: 'html'

### fontSize

Number

The font size in pixels.

Default: 12

### highlightCssClass

String

The precision of the slider value displayed in the optional text.

### Image#attractors

Array

List of attractor elements. If the distance of the image is less than attractorDistance the image is made to glider of this element.

Default: empty

### Image#rotate

Number

Image rotation in degrees.

Default: 0

### Image#snapSizeX

Number

Defines together with undefined the grid the image snaps on to. The image will only snap on integer multiples to snapSizeX in x and snapSizeY in y direction. If this value is equal to or less than 0, it will use the grid displayed by the major ticks of the default ticks of the default x axes of the board.

Default: 1

• JXG.Point#snapToGrid
• Image#snapSizeY
• JXG.Board#defaultAxes

### Image#snapSizeY

Number

Defines together with undefined the grid the image snaps on to. The image will only snap on integer multiples to snapSizeX in x and snapSizeY in y direction. If this value is equal to or less than 0, it will use the grid displayed by the major ticks of the default ticks of the default y axes of the board.

Default: 1

• JXG.Point#snapToGrid
• Image#snapSizeX
• JXG.Board#defaultAxes

### Incircle#center

Point

Attributes of circle center.

### Inequality#inverse

Boolean

By default an inequality is less (or equal) than. Set inverse to true will consider the inequality greater (or equal) than.

Default: false

### Integral#baseLeft

Point

Attributes of the (left) base point of the integral.

### Integral#baseRight

Point

Attributes of the (right) base point of the integral.

### Integral#curveLeft

Point

Attributes of the (left) starting point of the integral.

### Integral#curveRight

Point

Attributes of the (right) end point of the integral.

### Integral#label

Label

Attributes for integral label.

### Intersection.alwaysIntersect

Boolean

Used in undefined. This flag sets the behaviour of intersection points of e.g. two segments. If true, the intersection is treated as intersection of lines. If false the intersection point exists if the segments intersect setwise.

Default: true

### isLabel

Boolean

If enabled, the text will be handled as label. Intended for internal use.

Default: false

### JXG.Board#animationDelay

Number

Time (in msec) between two animation steps. Used in JXG.CoordsElement#moveAlong, JXG.CoordsElement#moveTo and JXG.CoordsElement#visit.

Default: 35

### JXG.Board#axis

Boolean

Show default axis. If shown, the horizontal axis can be accessed via JXG.Board.defaultAxis.x, the vertical axis can be accessed via JXG.Board.defaultAxis.y. Both axes have a sub-element "defaultTicks".

Default: false

### JXG.Board#boundingbox

Array

Bounding box of the visible area in user coordinates. It is an array consisting of four values: [x1, y1, x2, y2]

The canvas will be spanned from the upper left corner (1, y1) to the lower right corner (x2, y2).

Default: [-5, 5, 5, -5]

### JXG.Board#document

DOM object

Supply the document object. Defaults to window.document

Default: false (meaning window.document)

### JXG.Board#ignoreLabels

Booelan

If set true and hasPoint() is true for both an element and it's label, the element (and not the label) is taken as drag element.

If set false and hasPoint() is true for both an element and it's label, the label is taken (if it is on a higher layer than the element)

Default: true

### JXG.Board#keepAspectRatio

Boolean

If set to true the bounding box might be changed such that the ratio of width and height of the hosting HTML div is equal to the ratio of wifth and height of the bounding box.

This is necessary if circles should look like circles and not like ellipses. It is recommended to set keepAspectRatio = true for geometric applets. For function plotting keepAspectRatio = false might be the better choice.

Default: false

### JXG.Board#maxNameLength

Number

Maximum number of digits in automatic label generation. For example, if set to 1 automatic point labels end at "Z". If set to 2, point labels end at "ZZ".

Default: 1

### JXG.Board#name

String

Change redraw strategy in SVG rendering engine.

If set to 'svg', before every redrawing of the JSXGraph construction the SVG sub-tree of the DOM tree is taken out of the DOM.

If set to 'all', before every redrawing of the JSXGraph construction the complete DOM tree is taken out of the DOM. If set to 'none' the redrawing is done in-place.

Using 'svg' or 'all' speeds up the update process considerably. The risk is that if there is an exception, only a white div or window is left.

Default: 'svg'

### JXG.Board#offsetX

Number

A number that will be added to the absolute position of the board used in mouse coordinate calculations in JXG.Board#getCoordsTopLeftCorner.

Default: 0

• JXG.Board#offsetY

### JXG.Board#offsetY

Number

A number that will be added to the absolute position of the board used in mouse coordinate calculations in JXG.Board#getCoordsTopLeftCorner.

Default: 0

• JXG.Board#offsetX

### JXG.Board#pan

Object

Control the possibilities for panning interaction (i.e. moving the origin).

Possible sub-attributes with default values are:

                    pan: {
enabled: true   // Allow panning
needTwoFingers: true, // panningis done with two fingers on touch devices
needshift: true, // mouse panning needs pressing of the shift key
}


### JXG.Board#registerEvents

Boolean

Allow user interaction by registering mouse and touch events.

Default: true

### JXG.Board#renderer

String

Default rendering engine. Possible values are 'svg', 'canvas', 'vml', 'no'. If the rendering engine is not available JSXGraph tries to detect a different engine.

Default: 'svg'

### JXG.Board#showClearTraces

Boolean

Show a button which allows to clear all traces of a board.

Default: false

Boolean

Default: true

### JXG.Board#showNavigation

Boolean

Display of navigation arrows and zoom buttons

Default: true

### JXG.Board#showReload

Boolean

Show a button to force reload of a construction. Works only with the JessieCode tag

Default: false

### JXG.Board#takeFirst

Boolean

If true the first element of the set JXG.board.objects having hasPoint==true is taken as drag element.

Default: false

### JXG.Board#takeSizeFromFile

Boolean

If true, when read from a file or string - the size of the div can be changed by the construction text.

Default: false

### JXG.Board#zoom

Object

Control the possibilities for zoom interaction.

Possible sub-attributes with default values are:

                    zoom: {
factorX: 1.25,  // horizontal zoom factor (multiplied to JXG.Board#zoomX)
factorY: 1.25,  // vertical zoom factor (multiplied to JXG.Board#zoomY)
wheel: false,   // allow zooming by mouse wheel
needshift: false, // mouse wheel zooming needs pressing of the shift key
eps: 0.1        // minimal values of JXG.Board#zoomX and JXG.Board#zoomY
}


### JXG.Board#zoomFactor

Number

Additional zoom factor multiplied to JXG.Board#zoomX and JXG.Board#zoomY.

Default: 1.0

### JXG.Board#zoomX

Number

Zoom factor in horizontal direction.

Default: 1.0

### JXG.Board#zoomY

Number

Zoom factor in vertical direction.

Default: 1.0

### JXG.GeometryElement#dash

Number

Determines the elements border-style. Possible values are:

• 0 for a solid line
• 1 for a dotted line
• 2 for a line with small dashes
• 3 for a line with medium dashes
• 4 for a line with big dashes
• 5 for a line with alternating medium and big dashes and large gaps
• 6 for a line with alternating medium and big dashes and small gaps

Default: 0

### JXG.GeometryElement#draft

Boolean

If true the element will be drawn in grey scale colors to visualize that it's only a draft.

### JXG.GeometryElement#fillColor

String

The fill color of this geometry element.

### JXG.GeometryElement#fillOpacity

Number

Opacity for fill color.

### JXG.GeometryElement#fixed

Boolean

If true the element is fixed and can not be dragged around. The element will be repositioned on zoom and moveOrigin events.

Default: false

### JXG.GeometryElement#frozen

Boolean

If true the element is fixed and can not be dragged around. The element will even stay at its position on zoom and moveOrigin events. Only free elements like points, texts, curves can be frozen.

Default: false

Boolean

Default: true

### JXG.GeometryElement#highlightFillColor

String

The fill color of the given geometry element when the mouse is pointed over it.

### JXG.GeometryElement#highlightFillOpacity

Number

Opacity for fill color when the object is highlighted.

### JXG.GeometryElement#highlightStrokeColor

String

The stroke color of the given geometry element when the user moves the mouse over it.

### JXG.GeometryElement#highlightStrokeOpacity

Number

Opacity for stroke color when the object is highlighted.

### JXG.GeometryElement#highlightStrokeWidth

Number

Width of the element's stroke when the mouse is pointed over it.

### JXG.GeometryElement#label.offset

Array

Label offset from label anchor The label anchor is determined by JXG.GeometryElement#label.position

Default: [10,10]

### JXG.GeometryElement#label.position

String

Possible string values for the position of a label for label anchor points are: 'lft'|'rt'|'top'|'bot'|'ulft'|'urt'|'llft'|'lrt' This is relevant for non-points: line, circle, curve.

Default: 'urt'

### JXG.GeometryElement#needsRegularUpdate

Boolean

If this is set to true, the element is updated in every update call of the board. If set to false, the element is updated only after zoom events or more generally, when the bounding box has been changed. Examples for the latter behaviour should be axes.

Default: true

• JXG.GeometryElement#needsRegularUpdate

### JXG.GeometryElement#scalable

Boolean

Determines whether two-finger manipulation of this object may change its size. If set to false, the object is only rotated and translated.

Default: true

### JXG.GeometryElement#shadow

Boolean

If true the element will get a shadow.

Default: false

### JXG.GeometryElement#snapToGrid

Boolean

Snaps the element or its parents to the grid. Currently only relevant for points, circles, and lines. Points are snapped to grid directly, on circles and lines it's only the parent points that are snapped

Default: false

### JXG.GeometryElement#strokeColor

String

The stroke color of the given geometry element.

### JXG.GeometryElement#strokeOpacity

Number

Opacity for element's stroke color.

### JXG.GeometryElement#strokeWidth

Number

Width of the element's stroke.

### JXG.GeometryElement#trace

Boolean

If true the element will be traced, i.e. on every movement the element will be copied to the background. Use JXG.GeometryElement#clearTrace to delete the trace elements.

Default: false

### JXG.GeometryElement#traceAttributes

Object

Extra visual properties for traces of an element

• JXG.GeometryElement#trace

### JXG.GeometryElement#visible

Boolean

If false the element won't be visible on the board, otherwise it is shown.

Default: true

### JXG.GeometryElement#withLabel

Boolean

If true a label will display the element's name.

Default: false

### Line#firstArrow

Boolean

Line has an arrow head at the position of its first point or the corresponding intersection with the canvas border.

Default: false

• Line#lastArrow
• Line#touchFirstPoint

### Line#label

Label

Attributes for the line label.

### Line#lastArrow

Boolean

Line has an arrow head at the position of its second point or the corresponding intersection with the canvas border.

Default: false

• Line#firstArrow
• Line#touchLastPoint

### Line#point1

Point

Attributes for first defining point of the line.

### Line#point2

Point

Attributes for second defining point of the line.

### Line#snapSizeX

Number

Defines together with undefined the grid the point snaps on to. The point will only snap on integer multiples to snapSizeX in x and snapSizeY in y direction. If this value is equal to or less than 0, it will use the grid displayed by the major ticks of the default ticks of the default x axes of the board.

Default: 1

• Point#snapToGrid
• Point#snapSizeY
• JXG.Board#defaultAxes

### Line#snapSizeY

Number

Defines together with undefined the grid the point snaps on to. The point will only snap on integer multiples to snapSizeX in x and snapSizeY in y direction. If this value is equal to or less than 0, it will use the grid displayed by the major ticks of the default ticks of the default y axes of the board.

Default: 1

• Point#snapToGrid
• Point#snapSizeX
• Board#defaultAxes

### Line#snapToGrid

Boolean

If set to true, the point will snap to a grid defined by undefined and undefined.

Default: false

• Point#snapSizeX
• Point#snapSizeY

### Line#straightFirst

Boolean

If true, line stretches infinitely in direction of its first point. Otherwise it ends at point1.

Default: true

• Line#straightLast

### Line#straightLast

Boolean

If true, line stretches infinitely in direction of its second point. Otherwise it ends at point2.

Default: true

• Line#straightFirst

### Line#ticks

Ticks

Attributes for ticks of the line.

### Line#touchFirstPoint

Boolean

If set to true and undefined is set to true, the arrow head will just touch the circle line of the start point of the line.

Default: false

• Line#firstArrow

### Line#touchLastPoint

Boolean

If set to true and undefined is set to true, the arrow head will just touch the circle line of the start point of the line.

Default: false

• Line#firstArrow

### Normal#point

Point

Attributes of helper point of normal.

### numberPoints

Number

The number of evaluated data points.

Default: 100

### Parallel#point

Point

Attributes of helper point of normal.

### parse

Boolean

If set to true, the text is parsed and evaluated. For labels parse==true results in converting names of the form k_a to subscripts. If the text is given by string and parse==true, the string is parsed as JessieCode expression.

Default: true

### Point#attractorDistance

Number

If the distance of the point to one of its attractors is less than this number the point will be a glider on this attracting element. If set to zero nothing happens.

Default: 0.0

### Point#attractors

Array

List of attractor elements. If the distance of the point is less than attractorDistance the point is made to glider of this element.

Default: empty

### Point#attractorUnit

String

Unit for attractorDistance and snatchDistance, used for magnetized points and for snapToPoints. Possible values are 'screen' and 'user.

Default: 'user'

• Point#attractorDistance
• Point#snatchDistance
• Point#snapToPoints
• Point#attractors

### Point#face

String

There are different point styles which differ in appearance. Posssible values are

Value
cross
circle
square
plus
diamond
triangleUp
triangleDown
triangleLeft
triangleRight

Default: circle

• Point#setStyle

### Point#ignoredSnapToPoints

Array

List of elements which are ignored by snapToPoints.

Default: empty

### Point#infoboxDigits

String, Number

Truncating rule for the digits in the infobox.

• 'auto': done automatically by JXG#autoDigits
• 'none': no truncation
• number: use String.toFixed();

Default: 'auto'

### Point#showInfobox

Boolean

If true, the infobox is shown on mouse over, else not.

Default: true

### Point#size

Number

Size of a point. Means radius resp. half the width of a point (depending on the face).

Default: 3

• Point#face
• Point#setStyle

### Point#snapSizeX

Number

Defines together with undefined the grid the point snaps on to. The point will only snap on integer multiples to snapSizeX in x and snapSizeY in y direction. If this value is equal to or less than 0, it will use the grid displayed by the major ticks of the default ticks of the default x axes of the board.

Default: 1

• Point#snapToGrid
• Point#snapSizeY
• Board#defaultAxes

### Point#snapSizeY

Number

Defines together with undefined the grid the point snaps on to. The point will only snap on integer multiples to snapSizeX in x and snapSizeY in y direction. If this value is equal to or less than 0, it will use the grid displayed by the major ticks of the default ticks of the default y axes of the board.

Default: 1

• Point#snapToGrid
• Point#snapSizeX
• Board#defaultAxes

### Point#snapToGrid

Boolean

If set to true, the point will snap to a grid defined by undefined and undefined.

Default: false

• JXG.Point#snapSizeX
• JXG.Point#snapSizeY

### Point#snapToPoints

Boolean

If set to true, the point will snap to the nearest point in distance of undefined.

Default: false

• Point#attractorDistance

### Point#snatchDistance

Number

If the distance of the point to one of its attractors is at least this number the point will be released from being a glider on the attracting element. If set to zero nothing happens.

Default: 0.0

### Point#style

Number deprecated

This attribute was used to determined the point layout. It was derived from GEONExT and was replaced by undefined and undefined.

Default: 5

• Point#face
• Point#size

### Point#zoom

Boolean

If true, the point size changes on zoom events.

Default: false

### Polygon#borders

Line

Attributes for the polygon border lines.

### Polygon#hasInnerPoints

Boolean

If true, moving the mouse over inner points triggers hasPoint.

Default: false

### Polygon#label

Label

Attributes for the polygon label.

### Polygon#label

Label

Attributes for the polygon label.

### Polygon#vertices

Point

Attributes for the polygon vertices.

### Polygon#withLines

Boolean

Is the polygon bordered by lines?

Default: true

### precision

Number

The precision of the tape measure value displayed in the optional text.

Default: 2

### precision

Number

The precision of the slider value displayed in the optional text.

Default: 2

### PrescribedAngle#anglepoint

Point

Attributes for the helper point of the prescribed angle.

### RegularPolygon#borders

Line

Attributes for the polygon border lines.

### RegularPolygon#hasInnerPoints

Boolean

If true, moving the mouse over inner points triggers hasPoint.

Default: false

### RegularPolygon#vertices

Point

Attributes for the polygon vertices.

### RegularPolygon#withLines

Boolean

Is the polygon bordered by lines?

Default: true

### Sector#anglepoint

Point

Attributes for helper point anglepoint.

### Sector#arc

Arc

Attributes for sub-element arc.

### Sector#center

Point

Attributes for helper point center.

### Sector#label

Label

Attributes for the sector label.

Point

### Semicircle#midpoint

Point

Attributes for center point of the semicircle.

### Slider#baseline

Line

Attributes for the base line of the slider.

### Slider#highline

Line

Attributes for the highlighting line of the slider.

### Slider#label

Label

Attributes for the slider label.

### Slider#point1

Point

Attributes for first (left) helper point defining the slider position.

### Slider#point2

Point

Attributes for second (right) helper point defining the slider position.

### Slider#size

Number

Size of slider point.

Default: 6

• Point#size

### Slider#ticks

Ticks

Attributes for the ticks of the base line of the slider.

### Slider#withLabel

Boolean

Show slider label.

Default: true

### Slider#withTicks

Boolean

Show slider ticks.

Default: true

### Slopetriangle#baseline

Line

Attributes for the base line.

### Slopetriangle#basepoint

Point

Attributes for the base point.

### Slopetriangle#glider

Point

Attributes for the gliding helper point.

### Slopetriangle#label

Label

Attributes for the slope triangle label.

### Slopetriangle#toppoint

Point

Attributes for the top point.

### snapSizeX

Number

Defines together with undefined the grid the text snaps on to. The text will only snap on integer multiples to snapSizeX in x and snapSizeY in y direction. If this value is equal to or less than 0, it will use the grid displayed by the major ticks of the default ticks of the default x axes of the board.

Default: 1

• JXG.Point#snapToGrid
• Text#snapSizeY
• JXG.Board#defaultAxes

### snapSizeY

Number

Defines together with undefined the grid the text snaps on to. The text will only snap on integer multiples to snapSizeX in x and snapSizeY in y direction. If this value is equal to or less than 0, it will use the grid displayed by the major ticks of the default ticks of the default y axes of the board.

Default: 1

• JXG.Point#snapToGrid
• Text#snapSizeX
• JXG.Board#defaultAxes

### snapWidth

Number

The slider only returns integer multiples of this value, e.g. for discrete values set this property to 1. For continuous results set this to -1.

### Tapemeasure#label

Label

Attributes for the tape measure label.

### Tapemeasure#point1

Point

Attributes for first helper point defining the tape measure position.

### Tapemeasure#point2

Point

Attributes for second helper point defining the tape measure position.

### Tapemeasure#ticks

Ticks

Attributes for the ticks of the tape measure.

### Tapemeasure#withLabel

Boolean

Show tape measure label.

Default: true

### Tapemeasure#withTicks

Boolean

Show tape measure ticks.

Default: true

### Text#dragArea

String

Sensitive area for dragging the text. Possible values are 'all', or something else. This may be extended to left, right, ... in the future.

Default: 'all'

### Text#rotate

Number

Text rotation in degrees. Works for non-zero values only in combination with display=='internal'.

Default: 0

### Ticks#anchor

String

Determine the position of the tick with value 0. 'left' means point1 of the line, 'right' means point2, and 'middle' is equivalent to the midpoint of the defining points. This attribute is ignored if the parent line is of type axis and is parallel to either the x (i.e. y = 0) or the y (i.e. x = 0) axis.

Default: 'left'

### Ticks#drawLabels

Boolean

Draw labels yes/no

Default: false

### Ticks#drawZero

Boolean

Draw the zero tick, that lies at line.point1?

Default: false

### Ticks#generateLabelText

Function

A function that expects two JXG.Coords, the first one representing the coordinates of the tick that is to be labeled, the second one the coordinates of the center (the tick with position 0).

### Ticks#generateLabelValue

Function deprecated

Defined in src/options.js:699

A function that expects two JXG.Coords, the first one representing the coordinates of the tick that is to be labeled, the second one the coordinates of the center (the tick with position 0).

### Ticks#includeBoundaries

Boolean

Whether line boundaries should be counted or not in the lower and upper bounds when creating ticks.

Default: false

### Ticks#insertTicks

Boolean

If the distance between two ticks is too big we could insert new ticks. If insertTicks is true, we'll do so, otherwise we leave the distance as is. This option is ignored if equidistant is false. In the example below the distance between two ticks is given as 1 but because insertTicks is set to true many ticks will be omitted in the rendering process to keep the display clear.

Default: false

• Ticks#equidistant
• Ticks#minTicksDistance

#### Example:

// Create an axis providing two coord pairs. var p1 = board.create('point', [0, 0]); var p2 = board.create('point', [50, 25]); var l1 = board.create('line', [p1, p2]); var t = board.create('ticks', [l1, 1], { insertTicks: true, majorHeight: -1, label: { offset: [4, -9] }, drawLabels: true });

### Ticks#labels

Array

User defined labels for special ticks. Instead of the i-th tick's position, the i-th string stored in this array is shown. If the number of strings in this array is less than the number of special ticks, the tick's position is shown as a fallback.

Default: []

### Ticks#majorHeight

Number

Total height of a major tick. If negative the full height of the board is taken.

Default: 10

### Ticks#maxLabelLength

Number

The maximum number of characters a tick label can use.

Default: 5

• Ticks#precision

### Ticks#minorHeight

Number

Total height of a minor tick. If negative the full height of the board is taken.

Default: 4

### Ticks#minorTicks

Number

The number of minor ticks between two major ticks.

Default: 4

### Ticks#precision

Number

If a label exceeds undefined this determines the precision used to shorten the tick label.

Default: 3

• Ticks#maxLabelLength

### Ticks#scale

Number

Scale the ticks but not the tick labels.

Default: 1

• Ticks#scaleSymbol

### Ticks#scaleSymbol

String

A string that is appended to every tick, used to represent the scale factor given in undefined.

Default: ''

• Ticks#scale

### Ticks#tickEndings

Array

Decides in which direction finite ticks are visible. Possible values are 0=false or 1=true. In case of [0,1] the tick is only visible to the right of the line. In case of [1,0] the tick is only visible to the left of the line.

Default: [1, 1]

### Ticks#ticksDistance

Number

The default distance between two ticks. Please be aware that this value does not have to be used if undefined is set to true.

Default: 1

• Ticks#equidistant
• Ticks#insertTicks

### Ticks#useUnicodeMinus

Boolean

Use the unicode character 0x2212, i.e. the HTML entity &minus; as minus sign. That is −1 instead of -1.

Default: true

### Turtle#arrow

Curve

Attributes for the turtle arrow.

### useASCIIMathML

Boolean

If true the input will be given to ASCIIMathML before rendering.

Default: false

### useCaja

Boolean

If set to true and caja's sanitizeHTML function can be found it will be used to sanitize text output.

Default: false

### useMathJax

Boolean

If true MathJax will be used to render the input string.

Default: false