Download


Latest version v1.8.0

JSXGraph needs two files:

  1. Link the file jsxgraphcore.js into your web pages. This file has been minified using the terser compressor. jsxgraphcore.js contains the complete source code of JSXGraph bundled in one file. All objects of JSXGraph use the namespace JXG. Beside JXG there are no global variables.
  2. Include the css commands from jsxgraph.css into the web pages. It can be downloaded from https://jsxgraph.org/distrib/jsxgraph.css or from https://github.com/jsxgraph/jsxgraph.

CDN

The easiest way to use JSXGraph is to link directly to the public installation available through a Content Distribution Network (CDN). Put one of the following code snippets into the <head> block of your document:

<script type="text/javascript" charset="UTF-8"
 src="https://cdn.jsdelivr.net/npm/jsxgraph/distrib/jsxgraphcore.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/jsxgraph/distrib/jsxgraph.css" />

This uses always the latest version of JSXGraph. To get a specific version, please specify e.g.:

<script type="text/javascript" charset="UTF-8"
 src="https://cdn.jsdelivr.net/npm/jsxgraph@1.8.0/distrib/jsxgraphcore.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/jsxgraph@1.8.0/distrib/jsxgraph.css" />

or

<script type="text/javascript" charset="UTF-8"
 src="//cdnjs.cloudflare.com/ajax/libs/jsxgraph/1.8.0/jsxgraphcore.js"></script>
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/jsxgraph/1.8.0/jsxgraph.css" />

ES6 import

Importing JSXGraph as ES6 module is possible with the file jsxgraphcore.mjs:

<script type="module">
import JXG from 'https://cdn.jsdelivr.net/npm/jsxgraph/distrib/jsxgraphcore.mjs';
</script>

JSXGraph site

Download the latest version 1.8.0 from the JSXGraph home page: js file, mjs file

Plug-ins

Source code

Nightly builds

The latest development version can always be downloaded/used from https://jsxgraph.uni-bayreuth.de/~michael/jsxgraph-nightly/. Beware, there may be untested features (bugs)!

Previous releases

Here are links to older versions of JSXGraph.