
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
The dygraphs JavaScript library produces interactive, zoomable charts of time series:
Learn more about it at dygraphs.com.
Get help with dygraphs on Stack Overflow (preferred) and Google Groups.
<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).
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.
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.
dygraphs is available under the MIT license, included in LICENSE.txt.
v2.2.1 (2023-02-16)
window.smoothPlotter
will not be set by extras/smooth-plotter.js
any more RSN[]
as “no data yet” indicator (#597)Dygraph._require('dygraphs/src/dygraph-utils.js').numberValueFormatter
) which makes writing one’s own value formatters easier (as usual, proceed with care, exports with an underscore are internal); see https://dygraphs.com/tests/exported-symbols.html for the exposed surfacedrawCallback
when blocked (#953) plus do not redraw unnecessarilyx == -1
(#1002)panEdgeFraction
now worksjq
is now also required to buildpickDateTickGranularity
so overriding dateTicker
is easieryAxisLabelWidth
optiontests.js
source map and make its build reproducible on Debiantests/resizable.html
exposes the graph object, for quick F12 in-browser useversions.html
and release notes from new top-level CHANGES.md
this
rebinding checkFAQs
dygraphs is a fast, flexible open source JavaScript charting library.
The npm package dygraphs receives a total of 9,603 weekly downloads. As such, dygraphs popularity was classified as popular.
We found that dygraphs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.