# runkit-plotly

> wrapper to easily embed plotly charts in runkit

Latest version **1.1.0** (published 2018-02-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install runkit-plotly
pnpm add runkit-plotly
yarn add runkit-plotly
bun add runkit-plotly
```

## 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.1.0 |
| Published | 2018-02-10 |
| First published | 2017-10-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | mamatsunami |
| Maintainers | mamatsunami |
| Keywords | runkit, plotly, chart |

## Links

- npm: https://www.npmjs.com/package/runkit-plotly
- Repository: https://github.com/mamatsunami/runkit-plotly
- Homepage: https://github.com/mamatsunami/runkit-plotly#readme
- Issues: https://github.com/mamatsunami/runkit-plotly/issues
- npm.io page: https://npm.io/package/runkit-plotly

## 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

- 1.1.0 (latest) — 2018-02-10
- 1.0.0 — 2017-10-27

## README

runkit-plotly
===

Tool module to easily embed [plotly](https://github.com/plotly/plotly.js) charts in a [runkit](https://runkit.com) notebook.

[See working example](https://runkit.com/mamatsunami/runkit-plotly-chart-example)

```
const wrapPlotly = require('runkit-plotly');

var makeChart = wrapPlotly((data, elem, Plotly) => {
    var trace = {
        x: data.x,
        y: data.y,
        mode: 'lines',
        type: 'scatter'
    };

    var data = [trace];

    Plotly.newPlot(elem, data);
});

makeChart(
    {
        x: [2, 3, 4, 5],
        y: [16, 5, 11, 9]
    },
    {
        width: 700,
        height: 500
    }
); 
```

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