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 Dropdown events in JavaScript you should be able to build something close to your desired behavior.