Skip to content

Publish #5

Closed
Closed
@rreusser

Description

@rreusser

This will soon be published. Here are the choices:

  1. A single module will export both the version with plotly and as a factory.

    import PlotComponent from 'react-plotly.js'

    Or, alternatively,

    import Plotly from 'plotly.js'
    const EquivalentPlotComponent = factory(Plotly)

    This means plotly.js will be a peer dependency of react-plotly.js. I learned today that peer dependencies are optional and just give a warning if not found. So the usage will either be that you import the factory and create your own, based on your own version of plotly, or that you import the component and it's up to you to npm install plotly.js so that it's available.
    See also:

  2. Description will be A Plotly.js react component from Plotly.

/cc @bpostlethwaite @etpinard @monfera @nicolaskruchten

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions