# console-scatter-plot

> Simple scatter plot generator writing into browser/node console

Latest version **1.0.1** (published 2016-09-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install console-scatter-plot
pnpm add console-scatter-plot
yarn add console-scatter-plot
bun add console-scatter-plot
```

## 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 | 1.0.1 |
| Published | 2016-09-13 |
| First published | 2016-09-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | tkrkt |
| Maintainers | tkrkt |

## Links

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

## Recent versions

- 1.0.1 (latest) — 2016-09-13
- 1.0.0 — 2016-09-13

## README

# console-scatter-plot

Simple scatter plot generator writing into browser/node console

```
npm install --save console-scatter-plot
```

```js
import ScatterPlot from 'console-scatter-plot';

var option = {
  xAxis: {
    label: 'xLabel',
    color: '#0a5'
  },
  yAxis: {
    label: 'yLabel',
    color: 'rgb(150,150,200)'
  },
  points: [
    {x: 100, y: 30, color: 'red'},
    {x: 20, y: 60, marker: '@'}
  ]
};

var scatterPlot = new ScatterPlot(option);

var graph = scatterPlot.string(); // get graph as string (without color)
scatterPlot.print(); // print to console
```

<img src="./snapshot.png" width="640px">

[demo](https://tkrkt.github.com/console-scatter-plot)

## option

|param|-|default|
|---|---|---|
|xAxis|label|'x'|
| |min|(auto)|
| |max|(auto)|
| |length|60|
| |color|(default)|
| |flip|false|
|yAxis|label|'y'|
| |min|(auto)|
| |max|(auto)|
| |length|20|
| |color|(default)|
| |flip|false|
|points[]|x|(required)|
| |y|(required)|
| |marker|'\*'|
| |color|(default)|


## color option

* Browser
    * CSS color style (#f00, rgb(255, 0, 0), red, ...)
* Node.js
    * black
    * red
    * green
    * yellow
    * blue
    * magenta
    * cyan
    * white
    * gray
    * grey

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