✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🐇 Announcing Dash VTK for 3d simulation graphics. Check out the March webinar.

Have a few bar plot in one chart

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.

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