• Stars
    star
    3,155
  • Rank 13,878 (Top 0.3 %)
  • Language
    JavaScript
  • License
    Other
  • Created over 14 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Interactive visualizations of time series using JavaScript and the HTML canvas tag

dygraphs JavaScript charting library

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

sample graph

Learn more about it at dygraphs.com.

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

Features

Minimal Example

<html>
<head>
<script type="text/javascript" src="dygraph.js"></script>
<link rel="stylesheet" type="text/css" href="dygraph.css" />
</head>
<body>
<div id="graphdiv"></div>
<script type="text/javascript"><!--//--><![CDATA[//><!--
  Dygraph.onDOMready(function onDOMready() {  // or jQuery $() etc.
    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 UNPKG, cdnjs or from NPM (see below).

Usage with a module loader

Get dygraphs from NPM:

npm install dygraphs

Do not install from the git repository! Always use a tarball install, which contains the prebuilt files; npm fails to build the source code on install from github. (The tarball from the GitHub Registry is fine.)

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, install the following Debian packagesโ€ฆ

  • jq
  • mksh
  • pax
  • python3

โ€ฆ clone the repo and run:

npm install
npm run build-jsonly

Then open tests/demo.html in your browser.

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

License(s)

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

More Repositories

1

source-map-explorer

Analyze and debug space usage through source maps
TypeScript
3,804
star
2

effective-typescript

Effective TypeScript 2nd Edition: 83 Specific Ways to Improve Your TypeScript
1,474
star
3

oldnyc

Mapping photos of Old New York
Python
288
star
4

webdiff

Two-column web-based git difftool
Python
247
star
5

localturk

Mechanical Turk on your own machine.
TypeScript
199
star
6

RangeHTTPServer

SimpleHTTPServer with support for Range requests
Python
144
star
7

mocha-react

Demo of using MochaJS to test a ReactJS component (with JSX and Harmony)
JavaScript
116
star
8

literate-ts

Code samples that scale
TypeScript
100
star
9

pg-to-ts

Generate TypeScript interface definitions from your Postgres schema
TypeScript
97
star
10

crosswalk

Typed express router for TypeScript
TypeScript
86
star
11

typings-checker

Positive and negative assertions about TypeScript types and errors
TypeScript
49
star
12

jss

JSON processing command line tool based on JSONSelect (CSS-like selectors for JSON)
Python
44
star
13

codediff.js

Two-column JavaScript diff visualization with syntax highlighting
JavaScript
41
star
14

ssi-server

Server Side Includes in Python's SimpleHTTPServer
Python
38
star
15

gwbasic-decoder

Convert binary GW-BASIC programs back to text
Python
35
star
16

travis-weigh-in

Track how each commit/pull request affects the size of a file in your repo
Python
32
star
17

crudely-typed

Simple "everyday CRUD" Postgres queries with perfect TypeScript types
TypeScript
31
star
18

dygraphs-es6

Dygraphs ES6 import demonstration
JavaScript
31
star
19

webtreemap

CLI to quickly get a treemap visualization
TypeScript
29
star
20

boxedit

A web-based editor for Tesseract box files
JavaScript
27
star
21

dtsearch

Find packages with TypeScript types, either bundled or on Definitely Typed
TypeScript
25
star
22

march-madness-data

NCAA brackets in JSON form
HTML
21
star
23

expandable-image-grid

A grid of expandable images, similar to Google Image Search
JavaScript
16
star
24

aoc2021

Advent of Code 2021, this time in Go
Go
16
star
25

extract-raster-network

Extract a network graph (nodes and edges) from a raster image
Python
15
star
26

sfhistory

Making a map of historical SF photos
JavaScript
14
star
27

historymaps

Creating interactive historical maps of the world
Python
13
star
28

comparea

Compare geographic features
Python
12
star
29

pyjsonselect

Fully conformant implementation of JSONSelect in Python
Python
11
star
30

better-pull-requests

An improved UI for github pull requests
JavaScript
10
star
31

dds.js

Bridge Double Dummy Solver in JavaScript
JavaScript
9
star
32

lonely

Lonely Hangouts: local testing for the Google+ Hangout API
JavaScript
8
star
33

ts-mover

Utility for moving and renaming files in a TypeScript project
TypeScript
8
star
34

github-syntax

Add syntax highlighting to github's split diff pull request UI
JavaScript
7
star
35

deepsea

Reimplementation of DeepSEA using TensorFlow
Python
7
star
36

performance-boggle

An attempt to find the highest-scoring Boggle board and prove that I've found it.
C++
6
star
37

aoc2023

Advent of Code 2023
Zig
6
star
38

aoc2022

Advent of Code, this time in Deno
TypeScript
6
star
39

personal-archive

Organize your digital debris
Python
5
star
40

aoc2020

Advent of Code 2020 (in Rust)
Rust
5
star
41

prop-drilling

Examples of prop drilling in React+TypeScript, along with ways to mitigate it
TypeScript
4
star
42

danvk.github.io

danvk github pages
HTML
4
star
43

advent2019

Solutions for Advent of Code 2019
Python
4
star
44

justchartit

When you want to see charts, just chart it!
TypeScript
4
star
45

crosswalk-demo

Demo of typed-router
TypeScript
4
star
46

dtslint-post

Medium post on how to use dtslint
TypeScript
3
star
47

obesity

Analysis of government obesity data
Python
3
star
48

github-h-index

Calculating the h-index of organizations and users on GitHub
Python
3
star
49

react-inputs-toy

A toy demonstration of uncontrolled inputs in React.js
JavaScript
3
star
50

stub-require

Automatically create stubbed-out versions of node.js modules, ala Jest's autoMock
JavaScript
3
star
51

catskills

Hiking the skillies
TypeScript
2
star
52

geojson-proto

Demo of JSON and proto serialization using protobuf.js and TypeScript
TypeScript
2
star
53

issue-tracker

Chart open GitHub issues over time
Python
2
star
54

async-iteration

Experiments with async iterators
TypeScript
2
star
55

rusty-boggle

A boggle solver in Rust
Rust
1
star
56

dtslint-demo

Testing type declarations
TypeScript
1
star
57

strict-function-types-demo

Demo of strictFunctionTypes in TS 2.6
TypeScript
1
star
58

historytoy

Crafting navigation in a single page web application
JavaScript
1
star
59

gravlax

A Lox interpreter with tasty TypeScript seasoning
TypeScript
1
star
60

maven-hadoop-quickstart

Simple repo containing a Hadoop MapReduce configured via Maven
Java
1
star
61

lstm-examples

Tooling around with LSTM
Python
1
star
62

reactjs-prop-validation

A ReactJS Mixin which enforces that a Component document all its props in propTypes.
JavaScript
1
star
63

bogglets

Boggle in TypeScript
TypeScript
1
star
64

ts-bench

Performance testing tool for the TypeScript compiler
Python
1
star
65

slamrank

Calculate rankings after an ongoing Grand Slam
JavaScript
1
star
66

dygraphs-dpxdt

dpxdt screenshots for dygraphs charting library
1
star
67

bridge-filter

Simplify ACBL Club Results pages
Python
1
star
68

testing-types

Demo code for my talk at tsconf 2019
1
star
69

ts-reftrans

Demonstration of issues around referential transparency and type inference in TypeScript
TypeScript
1
star
70

knip-unused-member-repro

Repro for issue with knip
TypeScript
1
star