Announcing Dash Bio 1.0.0 🎉 : a one-stop-shop for bioinformatics and drug development visualizations.

Centralizing a plotly chart

Hi,

Is there a way to centralize a plotly chart in dash?

Hello @Oladayo,

There are many many ways to do this, one common way is to make use of the Row and Col components from the Dash Bootstrap Library to style the layout of your Dash App.

Place your dcc.Graph inside the column of a row, then you can use the justify argument to center the contents on that row.

row = html.Div(
    [
        dbc.Row(
            [
                dbc.Col(dcc.Graph()),
            ], justify='center'
        ),
    ]
)
1 Like

Thank you @atharvakatre

1 Like