How do I hide a certain graph and swap its position with another chart

Hi there,

I’m quite new to Plotly, and am trying to create a dashboard. It displays various pie bar graphs and statistics, and is expected to show a pie chart when an option is selected (let’s call it option x) from a dropdown menu (the bar graphs work fine, and the pie charts work too). However, my goal is to hide the bar graphs when x is selected, and show the pie charts alone, in the same area where the bar graphs were shown. The screenshots should be able to explain my current problem

hi sharan,

This is a little knowledge of HTML, just try to use your callback to change the display sub-item of the component’s style attribute.