• Stars
    star
    3,170
  • Rank 14,175 (Top 0.3 %)
  • Language
    JavaScript
  • License
    Other
  • Created almost 15 years ago
  • Updated 10 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,830
star
2

effective-typescript

Effective TypeScript 2nd Edition: 83 Specific Ways to Improve Your TypeScript
1,555
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
153
star
7

mocha-react

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

pg-to-ts

Generate TypeScript interface definitions from your Postgres schema
TypeScript
107
star
9

literate-ts

Code samples that scale
TypeScript
103
star
10

crosswalk

Typed express router for TypeScript
TypeScript
88
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
36
star
16

crudely-typed

Simple "everyday CRUD" Postgres queries with perfect TypeScript types
TypeScript
35
star
17

travis-weigh-in

Track how each commit/pull request affects the size of a file in your repo
Python
32
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
28
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

any-xray

X-Ray Glasses for TypeScript any Types
TypeScript
19
star
24

aoc2021

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

expandable-image-grid

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

extract-raster-network

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

sfhistory

Making a map of historical SF photos
JavaScript
14
star
28

historymaps

Creating interactive historical maps of the world
Python
13
star
29

comparea

Compare geographic features
Python
12
star
30

pyjsonselect

Fully conformant implementation of JSONSelect in Python
Python
11
star
31

better-pull-requests

An improved UI for github pull requests
JavaScript
10
star
32

dds.js

Bridge Double Dummy Solver in JavaScript
JavaScript
9
star
33

lonely

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

ts-mover

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

github-syntax

Add syntax highlighting to github's split diff pull request UI
JavaScript
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

deepsea

Reimplementation of DeepSEA using TensorFlow
Python
6
star
40

personal-archive

Organize your digital debris
Python
5
star
41

aoc2020

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

prop-drilling

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

danvk.github.io

danvk github pages
HTML
4
star
44

advent2019

Solutions for Advent of Code 2019
Python
4
star
45

justchartit

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

crosswalk-demo

Demo of typed-router
TypeScript
4
star
47

dtslint-post

Medium post on how to use dtslint
TypeScript
3
star
48

obesity

Analysis of government obesity data
Python
3
star
49

github-h-index

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

gravlax

A Lox interpreter with tasty TypeScript seasoning
TypeScript
3
star
51

react-inputs-toy

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

stub-require

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

catskills

Hiking the skillies
TypeScript
2
star
54

geojson-proto

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

gpt-batch-manager

Tools for splitting jobs across multiple OpenAI batches
Python
2
star
56

issue-tracker

Chart open GitHub issues over time
Python
2
star
57

async-iteration

Experiments with async iterators
TypeScript
2
star
58

maven-hadoop-quickstart

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

rusty-boggle

A boggle solver in Rust
Rust
1
star
60

strict-function-types-demo

Demo of strictFunctionTypes in TS 2.6
TypeScript
1
star
61

historytoy

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

dtslint-demo

Testing type declarations
TypeScript
1
star
63

dygraphs-dpxdt

dpxdt screenshots for dygraphs charting library
1
star
64

lstm-examples

Tooling around with LSTM
Python
1
star
65

reactjs-prop-validation

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

bogglets

Boggle in TypeScript
TypeScript
1
star
67

ts-bench

Performance testing tool for the TypeScript compiler
Python
1
star
68

slamrank

Calculate rankings after an ongoing Grand Slam
JavaScript
1
star
69

bridge-filter

Simplify ACBL Club Results pages
Python
1
star
70

testing-types

Demo code for my talk at tsconf 2019
1
star
71

ts-reftrans

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

knip-unused-member-repro

Repro for issue with knip
TypeScript
1
star