Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Interactive visualizations of time series using JavaScript and the HTML canvas tag

A quick and easy way to generate markup for mailto links without having to worry about the annoying formatting.
Dygraphs is a JavaScript charting library that renders interactive, zoomable time-series charts in the browser using the HTML canvas tag.
Dygraphs is a JavaScript charting library that plots time-series data directly in the browser without requiring an external server or Flash. It takes data as CSV-formatted strings, JavaScript arrays, or Google DataTable objects and produces interactive charts with pan and zoom, mouseover value display, and error-band support. The library is open-source under the MIT license and maintained on GitHub by danvk and contributors.
Dygraphs provides a focused set of features tailored for time-series visualization, all working without server-side dependencies.
dygraphs; import as an ES module with import Dygraph from 'dygraphs' or require it. Prebuilt files are in node_modules/dygraphs/dist/.Dygraphs is aimed at developers who need to visualize time-series data in web applications. It is well-suited for dashboards, data analytics tools, and financial or scientific charts. Researchers and analysts can use it to create interactive exploratory plots from CSV data with minimal code. Front-end engineers can integrate it with module bundlers like browserify or webpack, and even use it in ES6 projects via the dygraphs-es6 repository.
Dygraphs' features translate into several concrete use cases across industries:
The library is simple to set up: include dygraph.js and dygraph.css in your page, or install via npm with npm install dygraphs. Then create a chart by passing a container element (or its ID) and the data as a string in CSV format, a JavaScript array, or a Google DataTable, along with an options object. Dygraphs handles the rest, rendering on the HTML canvas and managing interactions. The minimal example in the README shows constructing a Dygraph inside Dygraph.onDOMready().
Dygraphs is free and open-source under the MIT license.
No, Dygraphs runs entirely in the browser using the HTML canvas element. It does not require an external server or Flash.
You can install it via npm with npm install dygraphs. The package includes pre-built files in node_modules/dygraphs/dist/. You can also load it from CDNs like UNPKG, jsDelivr, or cdnjs.
Yes, Dygraphs can be imported as an ES module (import Dygraph from 'dygraphs' or const Dygraph = require('dygraphs')) and works with bundlers like browserify and webpack.
Yes, Dygraphs is released under the MIT license, which permits free commercial and personal use.
The project is open-source on GitHub, but it explicitly states that contributions prepared with AI or LLMs are not welcome. It also warns against installing from the git repository for builds; use the tarball install instead.
