Skip to content
This repository has been archived by the owner on Sep 5, 2019. It is now read-only.

nteract/minimal-plotly

Repository files navigation

Note: This package is now deprecated. nteract's plotly-transform now uses the official minifed distribution produced by Plotly instead of this package. If you were previously depending on this package, we recommend checking out Plotly's minified release.

@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