dash-bio icon indicating copy to clipboard operation
dash-bio copied to clipboard

Can NeedlePlot be run as standalone plotly.js?

Open jberg1999 opened this issue 3 years ago • 2 comments

I am interested in integrating a Dash Bio NeedlePlot into a html page so that the plot can be redrawn on user input. To do this, believe that I would need to be able to call javascript code that generates the underlying plotly figure in much the same way that one might create a normal plotly.js plot. Since Dash Bio has plotly.js under the hood, is it possible to do something like this? -Thanks

jberg1999 avatar Feb 28 '22 19:02 jberg1999

We don't package Dash Bio for use outside of Dash, but you're welcome to pilfer the code that calls plotly.js here: https://github.com/plotly/dash-bio/blob/master/src/lib/fragments/NeedlePlot.react.js

alexcjohnson avatar Feb 28 '22 20:02 alexcjohnson

Thank you so much! I am not sure if I will try to replicate the Dash NeedlePlot exactly, but this code provides a nice reference in case I choose to construct my own type of plot.

jberg1999 avatar Mar 01 '22 17:03 jberg1999