plotly / dash-bio

Open-source bioinformatics components for Dash
https://dash-gallery.plotly.host/Portal/?search=Bioinformatics
MIT License
529 stars 194 forks source link

Can NeedlePlot be run as standalone plotly.js? #674

Closed jberg1999 closed 1 year ago

jberg1999 commented 2 years ago

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

alexcjohnson commented 2 years ago

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

jberg1999 commented 2 years ago

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.