react-plotly-legend

1.0.2 • Public • Published

plotly-legend-react

A simple rewrite legends component for plotly

<div>
    <PlotLegend/>
</div>

Install & Usage

yarn add plotly-legend-react

Include the Component

import React from 'react'
import LegendPlot from 'react-plotly-legend'

export default () => {
    return (
        <LegendPlot data={data} layout={layout} />
    )
}

LegendPlot's props is the same as plotly

Demo

Drag Racing

/react-plotly-legend/

    Package Sidebar

    Install

    npm i react-plotly-legend

    Weekly Downloads

    6

    Version

    1.0.2

    License

    ISC

    Unpacked Size

    819 kB

    Total Files

    29

    Last publish

    Collaborators

    • zhouing