@rdub/next-plotly
v0.3.0
Published
Plotly utils for Next.js
Downloads
176
Readme
@rdub/next-plotly
- plot-wrapper.tsx: wrap a react-plotly.js Plot, add support for:
- A "fallback" image (rendered while
react-plotly.js
is being dynamically loaded) - Legend-trace mouseover events
- Rounding x-axis range in response to user zoom events (e.g. to avoid partial visibility of bars at x-axis ticks)
- Downloading a plot image (e.g. as PNG)
- A "fallback" image (rendered while
- plot.tsx - wraps
PlotWrapper
, adds default title/subtitle/filtering configs.
Used in: