dygraphs

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

Github星跟踪图

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.

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

License(s)

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

主要指标

概览
名称与所有者danvk/dygraphs
主编程语言JavaScript
编程语言JavaScript (语言数: 5)
平台
许可证Other
所有者活动
创建于2009-11-24 10:26:21
推送于2025-03-15 01:25:29
最后一次提交2025-03-15 02:24:59
发布数12
最新版本名称v2.2.1 (发布于 2023-02-17 00:00:57)
第一版名称v1.0.0 (发布于 2013-08-13 16:19:26)
用户参与
星数3.2k
关注者数111
派生数602
提交数2.9k
已启用问题?
问题数575
打开的问题数253
拉请求数348
打开的拉请求数12
关闭的拉请求数124
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?