fast-aircraft-design / FAST-OAD

FAST-OAD: An open source framework for rapid Overall Aircraft Design
GNU General Public License v3.0
47 stars 25 forks source link

Impossible to hide one aircraft on the first figure of mass_breakdown_bar_plot #544

Closed Mokyoslurp closed 1 week ago

Mokyoslurp commented 1 week ago

Describe the bug When using the plotly functionnality to hide a set of data on the bar mass breakdown, only the the second figure hides the data. The first one keeps all the data plotted.

To Reproduce Plot the bar mass breakdown with at least 2 aircraft, then click on the legend on one of the aircraft.

Expected behavior Both figures should hide the selected the aircraft.

Error message Before clicking: image After clicking: image

Environment

christophe-david commented 1 week ago

Thanks for the report. Indeed, we ask Plotly to show the legend only for the right-handed plot, and we miss using the legendgroup attribute. We will fix that.

christophe-david commented 1 week ago

My bad, didn't see @aeomath had already proposed a fix 😅