Dear All,
I’m trying to put several bar plots in one charts. in plot.ly python we can use add_trace. but I do not find clues in dash. can anyone give me a hand?
thanks in advance.
Tony
Hi @tonydeck, you can create a plotly figure (using the various objects and methods of plotly.py
, such as fig.add_trace
) and then pass this figure as the figure
attribute of a dcc.Graph
. The examples in https://dash.plot.ly/interactive-graphing set the figure
attribute with a dictionary but you can pass any plotly figure object instead as well.
1 Like