我的多页破折号应用程序 (python) 中的条形图未显示。我究竟做错了什么?

Bar plot in my multipage dash app (python) is not being displayed. What am I doing wrong?

我的多页破折号应用程序 (python) 中的条形图未显示。我做错了什么?

from dash import html
import plotly.express as px
from data import Rejects1
from navbar import create_navbar

df = Rejects1.dfrj

nav = create_navbar()

header = px.bar(df, x='date', y='amount', color='reject_type', height=400, width=1400)


def create_rejects1():
    layout = html.Div([
        nav,
        header,
    ]),
    return layout

我无法复制您的代码,但有其他方法可以显示在: https://plotly.com/python/renderers/