No description
  • JavaScript 84.3%
  • HTML 14%
  • Python 0.5%
  • Shell 0.5%
  • CSS 0.5%
  • Other 0.2%
Find a file
Marilena Ioannou 1d62680d8f
Merge pull request #2 from netdata/fix/build
fix: npm published files
2022-03-23 10:22:02 +02:00
.github 2.0.0 release fixes (#815) 2016-12-28 16:37:08 -05:00
auto_tests #984 tests for data type detection 2020-02-20 15:52:54 +01:00
common Start porting gallery 2015-10-24 22:44:14 -04:00
css Use CSS for styling 2016-09-28 08:45:38 -04:00
docs Bump versions and add release notes 2017-12-12 14:26:57 -08:00
gallery Remove many points from gallery 2017-12-31 13:33:47 -05:00
gwt/org/danvk 2.0.0 release fixes (#815) 2016-12-28 16:37:08 -05:00
jsdoc-toolkit clear generated jsdoc; add script 2011-05-09 07:20:03 -07:00
scripts Use link href, not link src (#904) 2018-01-30 09:20:49 -05:00
src if we have no sense of scale, center on the sole value. 2022-03-10 15:27:37 +02:00
tests spelling fixes 2017-02-14 22:17:25 +01:00
.gitignore fix: run build script 2022-03-23 07:10:04 +02:00
.jshintrc Convert tests from jstd to Mocha. 2015-03-22 17:46:44 -04:00
.travis.yml Import babel polyfill (#813) 2016-12-27 10:12:55 -05:00
DEVELOP.md Dygraph.dateString_: shows milliseconds if any. (#774) 2016-09-15 09:23:48 -04:00
dygraph-exports.js lint cleanup 2013-10-26 18:56:54 -05:00
dygraph-externs.js Add missing semicolon in externs (#964) 2019-05-25 22:26:17 -04:00
index.es5.js 2.0.0 release fixes (#815) 2016-12-28 16:37:08 -05:00
index.js 2.0.0 release fixes (#815) 2016-12-28 16:37:08 -05:00
LICENSE.txt add licensing info 2009-08-20 01:06:26 +00:00
package-lock.json fix: run build script 2022-03-23 07:10:04 +02:00
package.json v2.1.1 2022-03-23 07:15:00 +02:00
README.md fix: run build script 2022-03-23 07:10:04 +02:00
releases.json Bump versions and add release notes 2017-12-12 14:26:57 -08:00
screenshot.png update gadget, add screenshot 2011-01-29 12:09:06 -05:00
thumbnail.png add thumbnail 2009-11-26 21:10:29 -05:00

Build Status Coverage Status

dygraphs JavaScript charting library

The dygraphs JavaScript library produces interactive, zoomable charts of time series:

Learn more about it at dygraphs.com.

Get help with dygraphs by browsing the on Stack Overflow (preferred) and Google Groups.

Features

Minimal Example

<html>
<head>
<script type="text/javascript" src="dygraph.js"></script>
<link rel="stylesheet" href="dygraph.css" />
</head>
<body>
<div id="graphdiv"></div>
<script type="text/javascript">
  g = new Dygraph(
        document.getElementById("graphdiv"),  // containing div
        "Date,Temperature\n" +                // the data series
        "2008-05-07,75\n" +
        "2008-05-08,70\n" +
        "2008-05-09,80\n",
        { }                                   // the options
      );
</script>
</body>
</html>

Learn more by reading the tutorial and seeing demonstrations of what dygraphs can do in the gallery. You can get dygraph.js and dygraph.css from cdnjs or from NPM (see below).

Usage with a module loader

Get dygraphs from NPM:

npm install dygraphs

You'll find pre-built JS & CSS files in node_modules/dygraphs/dist. If you're using a module bundler like browserify or webpack, you can import dygraphs:

import Dygraph from 'dygraphs';
// or: const Dygraph = require('dygraphs');

const g = new Dygraph('graphdiv', data, { /* options */ });

Check out the dygraphs-es6 repo for a fully-worked example.

Development

To get going, clone the repo and run:

npm install
npm run build

Then open tests/demo.html in your browser.

Important Note: It is required to run build script before NPM publish, for folder src-es5 to have been created and included in the published files.

Read more about the dygraphs development process in the developer guide.

License(s)

dygraphs is available under the MIT license, included in LICENSE.txt.