nteract / minimal-plotly

:bar_chart: A minimal version of the plotly library

Home Page:https://plot.ly/javascript/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

:bar_chart: A minimal version of the plotly library

https://plot.ly/javascript/

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:JavaScript 100.0%