The current version of dygraphs is 2.2.1. Most users will want to download minified files for this version:

For recent releases, GitHub Releases hosts both source tarball (dygraphs_2.2.1.orig.tar.gz, basically the git repository packaged up) and binary release (dygraphs-2.2.1.tgz, identical with what was uploaded to NPM). The latter contains the precompiled CSS and JS files in both readable and minified forms as well as a copy of the documentation site, ideal for end users. The former only contains the source code needed to build all of it; distro packagers will want that file.

There's a hosted version of dygraphs on UNPKG:

<script type="text/javascript" src="https://unpkg.com/dygraphs@2.2.1/dist/dygraph.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://unpkg.com/dygraphs@2.2.1/dist/dygraph.min.css" />

There's a hosted version of dygraphs on cdnjs.com:

<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/dygraph/2.2.1/dygraph.min.js"></script>
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/dygraph/2.2.1/dygraph.min.css" />

But note that use of CDNs violates the EU-GDPR. Besides the tarballs (see above) you can also install dygraphs locally into your project instead using NPM:

$ npm install dygraphs
  # dygraphs is now in node_modules/dygraphs/dist/dygraph.{css,js} for
  # the browser, and node_modules/dygraphs/index{,.es5}.js for nodejs

Most distributions include a source map to facilitate debugging.

To generate your own minified JS, install the prerequisites…

  • mksh
  • pax
  • python3

… and run:

git clone https://github.com/danvk/dygraphs.git
cd dygraphs
npm install
npm run build-jsonly

This will create a dygraph.min.css and a dygraph.min.js file in the dist directory.

You may also download files for previously-released versions:

See Version History for more information on each release.