Neutralize Pesky Miscreants

    @nteract/transform-plotly
    TypeScript icon, indicating that this package has built-in type declarations

    7.0.1 • Public • Published

    @nteract/transform-plotly

    This package contains a React component for rendering visualizations using Plotly.

    Installation

    $ yarn add @nteract/transform-plotly
    
    $ npm install --save @nteract/transform-plotly
    

    Usage

    The example below shows how we can use the PlotlyTransform to render a scatterplot.

    import PlotlyTransform from "@nteract/transform-plotly";
    
    export default () => {
      return (
        <PlotlyTransform
          data={`{
      data: [
        { x: [1999, 2000, 2001, 2002], y: [10, 15, 13, 17], type: "scatter" },
        { x: [1999, 2000, 2001, 2002], y: [16, 5, 11, 9], type: "scatter" }
      ],
      layout: {
        title: "Super Stuff",
        xaxis: { title: "Year", showgrid: false, zeroline: false },
        yaxis: { title: "Percent", showline: false },
        height: "100px"
      }
    }`}
        />
      );
    };

    Documentation

    We're working on adding more documentation for this component. Stay tuned by watching this repository!

    Support

    If you experience an issue while using this package or have a feature request, please file an issue on the issue board and add the pkg:transform-plotly label.

    License

    BSD-3-Clause

    Keywords

    none

    Install

    npm i @nteract/transform-plotly

    DownloadsWeekly Downloads

    550

    Version

    7.0.1

    License

    BSD-3-Clause

    Unpacked Size

    120 kB

    Total Files

    10

    Last publish

    Collaborators

    • benabel
    • alexandercbooth
    • benrussert
    • mpacer
    • theengineear
    • yuvipanda
    • rgbkrk
    • lgeiger
    • ivanov
    • captainsafia
    • peggyrayzis
    • jdetle
    • hasch
    • willingc
    • stormpython
    • crystalline-cat
    • emeeks
    • hydrosquall