Hi, I am working with the dash_bio Circos package and I want to create and save the graph object similar to how its done with the plotly.offline.plot
fig = go.Figure(data=[go.Sankey(
...
))])
plotly.offline.plot(fig, output_type='div')
But with my I can’t figure out how to extract the graph object from my Circo component, where I create my a HTML component as:
import dash
import dash_bio as dashbio
import dash_html_components as html
import dash_core_components as dcc
with open('cluster_circo_data.json','r') as fp:
circos_graph_data = json.load(fp)
app.layout = html.Div([
dashbio.Circos(
id='my-dashbio-circos',
layout=circos_graph_data['layout'],
selectEvent={"0": "hover", "1": "click", "2": "both"},
tracks=[{
'type': 'CHORDS',
'data': circos_graph_data['chords'],
'config': {
'inner radius': 80,
'opacity': 0.7,
'color': {'name':'color'},
'tooltipContent': {
'source': 'source',
'sourceID': 'id',
'target': 'target',
'targetID': 'id',
'targetEnd': 'end'
}
}
}]
),
])
Is there a way for me to get this graph without creating the the Dash app and simply storing the figure.