@nteract/plotly

A minimal version of the plotly.js library

Usage no npm install needed!

<script type="module">
  import nteractPlotly from 'https://cdn.skypack.dev/@nteract/plotly';
</script>

README

@nteract/plotly

npm (scoped) Build Status

A minified version of the plotly library.

Installation

npm install @nteract/plotly

Usage Example

const Plotly = require("@nteract/plotly");
const div = document.createElement("div");
document.body.appendChild(div);
Plotly.plot(
  div,
  [
    {
      x: [1, 2, 3, 4, 5],
      y: [1, 2, 4, 8, 16]
    }
  ],
  {
    margin: { t: 0 }
  }
);

Plotly Library