# Difference between revisions of "Hyperbola II"

From JSXGraph Wiki

Jump to navigationJump to searchA WASSERMANN (talk | contribs) (Created page with "<jsxgraph width="500" height="500"> JXG.Options.label.autoPosition = true; JXG.Options.text.fontSize = 16; JXG.Options.line.strokeWidth = 0.8; var board = JXG.JSXGraph.initBo...") |
A WASSERMANN (talk | contribs) |
||

(One intermediate revision by the same user not shown) | |||

Line 4: | Line 4: | ||

JXG.Options.line.strokeWidth = 0.8; | JXG.Options.line.strokeWidth = 0.8; | ||

− | var board = JXG.JSXGraph.initBoard('jxgbox', { boundingbox: [-5, 5, 5, -5], axis: | + | var board = JXG.JSXGraph.initBoard('jxgbox', { boundingbox: [-5, 5, 5, -5], axis: false, showClearTraces: true}); |

− | var h = board.create(' | + | var h = board.create('functiongraph', ['1/x']); |

− | var l1 = board.create('line', [0, | + | var l1 = board.create('line', [0, 0, 1], {dash: 1}); |

− | |||

</jsxgraph> | </jsxgraph> | ||

=== The underlying JavaScript code === | === The underlying JavaScript code === | ||

<source lang="javascript"> | <source lang="javascript"> | ||

+ | JXG.Options.label.autoPosition = true; | ||

+ | JXG.Options.text.fontSize = 16; | ||

+ | JXG.Options.line.strokeWidth = 0.8; | ||

+ | |||

+ | var board = JXG.JSXGraph.initBoard('jxgbox', { boundingbox: [-5, 5, 5, -5], axis: false, showClearTraces: true}); | ||

+ | |||

+ | var h = board.create('functiongraph', ['1/x']); | ||

+ | var l1 = board.create('line', [0, 0, 1], {dash: 1}); | ||

</source> | </source> | ||

[[Category:Examples]] | [[Category:Examples]] | ||

[[Category:Geometry]] | [[Category:Geometry]] |

## Latest revision as of 21:33, 27 June 2021

### The underlying JavaScript code

```
JXG.Options.label.autoPosition = true;
JXG.Options.text.fontSize = 16;
JXG.Options.line.strokeWidth = 0.8;
var board = JXG.JSXGraph.initBoard('jxgbox', { boundingbox: [-5, 5, 5, -5], axis: false, showClearTraces: true});
var h = board.create('functiongraph', ['1/x']);
var l1 = board.create('line', [0, 0, 1], {dash: 1});
```