Layout changes after callback update

I have designed a layout using dbc, which has 2 rows
The first row is header.
The second row is split into two columns.


HEADING

                    |
                    |   Graph 1
                    |
                    |
                    |   Graph 2  
                    |
                    |

This is how I have designed it. The app also loads like this. But, once an xlsx file is selected and the callback updates the figures, something like this happens.


    HEADING

drag and drop

data table


      Graph1 

      Graph2

Why does this change happen. Due to some reasons I am not able attach code.

1 Like

That depends how you have made your callback function.
Does your callback return a Div, just the function or what?
If you copy-paste your code between such three goose-marks, this webpage will format it as code:

```
```

The callback function returns a figure object from a json file.
It looks something like this.

return fig_URL['Figure'][0]

fig_URL contains the json.