Skip to content

zhoutinglilly/react-plotly-legend

Repository files navigation

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

About

A customized legend component for react-plot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages