Black Lives Matter. Please consider donating to Black Girls Code today.
Dash HoloViews is now available! Check out the docs.

Comparison Chart: Trace Vs Trace On Blank Bar Graph?

Is it possible to have a blank graph and then have users select from two dropdowns to let them compare the values of two traces on side-by-side bars? From what I can see in the documentation, I believe the dropdowns could be positioned on opposite sides from one another.

Any example is appreciated! Thanks.

This is entirely possible within plotly.js, yes.

Do you have an example of having the graph blank first and then loading the data upon dropdown? I’m now realizing I’d want there to be two parameters: year and the trace. Thanks!

No I don’t. Starting from https://plot.ly/javascript/dropdowns/ you should be able to build something close to your desired behavior.