# plot-it

> Plot advanced charts in Node.js

Latest version **2.1.4** (published 2018-09-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install plot-it
pnpm add plot-it
yarn add plot-it
bun add plot-it
```

Provides the command `plot-it`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.4 |
| Published | 2018-09-21 |
| First published | 2018-08-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 369.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Samuel Novaes |
| Maintainers | samuelnovaes |
| Keywords | plot, math, data, science, statistics, chart |

## Links

- npm: https://www.npmjs.com/package/plot-it
- Repository: https://github.com/samuelnovaes/plot-it
- Homepage: https://github.com/samuelnovaes/plot-it#readme
- Issues: https://github.com/samuelnovaes/plot-it/issues
- npm.io page: https://npm.io/package/plot-it

## Dependencies (4)

- [decache](https://npm.io/package/decache.md) *
- [chokidar](https://npm.io/package/chokidar.md) *
- [electron](https://npm.io/package/electron.md) *
- [plotly.js](https://npm.io/package/plotly.js.md) *

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 2.1.4 (latest) — 2018-09-21
- 2.1.3 — 2018-09-21
- 2.1.2 — 2018-09-21
- 2.1.1 — 2018-08-24
- 2.1.0 — 2018-08-24
- 2.0.11 — 2018-08-23
- 2.0.10 — 2018-08-22
- 2.0.9 — 2018-08-22
- 2.0.8 — 2018-08-22
- 2.0.7 — 2018-08-21
- 2.0.6 — 2018-08-21
- 2.0.5 — 2018-08-21
- 2.0.4 — 2018-08-20
- 2.0.3 — 2018-08-20
- 2.0.2 — 2018-08-20
- … 6 more at https://npm.io/package/plot-it/versions

## README

# Plot It
Plot advanced charts in Node.js. Plot It uses [plotly.js](https://plot.ly/javascript/).

### With hot reload!

# Install

`npm i -g plot-it`

# Demo (Using [safe-range](https://github.com/samuelnovaes/safe-range) to create range)

- Create a directory for your project.
- Run `npm init -y`.
- Run `npm i safe-range`.
- Create an index.js file.

```javascript
const range = require('safe-range')
const r = range(-10, 10, 0.1)

//Functions
const f = x => Math.sin(x)
const g = x => x ** 2

module.exports = [
	{
		x: r,
		y: r.map(f),
		name: 'f(x) = sin(x)'
	},
	{
		x: r,
		y: r.map(g),
		name: 'g(x) = x²'
	}
]
```

- Run `plot-it`.

![image](https://lh3.googleusercontent.com/u/0/d/16bKGZN3c8P7ff3yJOeubmMdkpRWMUruG=s1600-k-iv2)

> Press F5 to force refresh if necessary.

> Press F12 to show data table

![image](https://lh3.googleusercontent.com/u/0/d/1S5cvh26qxEnCB7L_c6sjHlWjjIpXVL6e=s1600-k-iv3)

# [Reference](https://plot.ly/javascript/reference/)

---
_Source: https://npm.io/package/plot-it · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
