react-plotly-legend

A customized legend component for react-plot

Usage no npm install needed!

<script type="module">
  import reactPlotlyLegend from 'https://cdn.skypack.dev/react-plotly-legend';
</script>

README

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