
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
The simplest and most forgiving plotting API for JavaScript and TypeScript.
Use plot to quickly and conveniently render charts for your data. It is an abstraction layer over JavaScript visualization libraries. Currently supporting Apex Charts, but intending to support more in the future.
For various examples see this repo.
Plot can be used from Node.js, from the browser and is specially designed to integrate with Data-Forge Notebook.
I'm after contributors to help flesh this library out! Can you help?
Please give feedback!
Email the author on ashley@codecapers.com.au.
Click here to support the developer.
Some instructions for using plot. These instructions are for JavaScript, but this library also works in TypeScript.
npm install --save plot @plotex/render-dom
const { plot } = require("plot");
require("@plotex/render-dom");
const data = [ /* your data */ ];
const parentEl = /* parent DOM to contain the chart */ ;
const chart = plot(data).renderDOM(parentEl);
npm install --save plot @plotex/render-image
const { plot } = require("plot");
require("@plotex/render-image");
const data = [ /* your data */ ];
plot(data).renderImage("my-chart.png");
plot is integrated into Data-Forge Notebook.
You can plot an array of JavaScript data like this:
const data = [ /* your data */ ];
display.plot(data);
See more Data-Forge Notebook examples in the exported example visualization notebook.
const data = [ /* your data */ ];
const chartConfig = { chartType: "bar" };
const axisConfig = { x: "Date", y: "Close" };
plot(data, chartConfig, axisConfig)
.renderDOM(parentEl);
plot([10, 15, 30])
.renderDOM(parentEl);
plot([ { A: 10, B: 52 }, { A: 15, B: 37 }, A: 30, B: 45 }])
.renderDOM(parentEl);
plot({ A: [10, 15, 30], B: [52, 37, 45] })
.renderDOM(parentEl);
There's more work to be done!
Can you contribute, test or give feedback?
Email the developer on ashley@codecapers.com.au.
FAQs
The simplest plotting API for JavaScript and TypeScript.
The npm package plot receives a total of 116 weekly downloads. As such, plot popularity was classified as not popular.
We found that plot demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.