Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

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

License

NotificationsYou must be signed in to change notification settings

danvk/dygraphs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

sample graph

Learn more about it atdygraphs.com.

Get help with dygraphs onStack Overflow (preferred) andGoogle Groups.

Features

Minimal Example

<html><head><scripttype="text/javascript"src="dygraph.js"></script><linkrel="stylesheet"type="text/css"href="dygraph.css"/></head><body><divid="graphdiv"></div><scripttype="text/javascript"><!--//--><![CDATA[//><!--Dygraph.onDOMready(functiononDOMready(){// or jQuery $() etc.g=newDygraph(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 readingthe tutorial and seeing demonstrations of whatdygraphs can do in thegallery. You can getdygraph.js anddygraph.cssfromUNPKG,cdnjs orfrom 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 codeon install from github. (The tarball from the GitHub Registry is fine.)

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

importDygraphfrom'dygraphs';// or: const Dygraph = require('dygraphs');constg=newDygraph('graphdiv',data,{/* options */});

Check out thedygraphs-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 installnpm run build-jsonly

Then opentests/demo.html in your browser.

Read more about the dygraphs development process in thedeveloper guide.

License(s)

dygraphs is available under the MIT license, included inLICENSE.txt.


[8]ページ先頭

©2009-2025 Movatter.jp