Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/340.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 如何使用引导设置我的Plotly Dash应用程序的样式?_Python_Css_Plotly_Plotly Dash - Fatal编程技术网

Python 如何使用引导设置我的Plotly Dash应用程序的样式?

Python 如何使用引导设置我的Plotly Dash应用程序的样式?,python,css,plotly,plotly-dash,Python,Css,Plotly,Plotly Dash,这是我的密码。 我正试图将两张图表对齐 最简单的方法是什么 ########### Display the chart app = dash.Dash() server = app.server app.layout = html.Div(style={'backgroundColor': '#000000'},children=[ html.H1('Indicator'), dcc.Graph( id='

这是我的密码。 我正试图将两张图表对齐

最简单的方法是什么

    ########### Display the chart
    app = dash.Dash()
    server = app.server

    app.layout = html.Div(style={'backgroundColor': '#000000'},children=[
        html.H1('Indicator'),
        dcc.Graph(
            id='Teste1',
            figure=client_relation
        ),

        dcc.Graph(
            id='Test2',
            figure=beer_fig
        ),


        ]
    )

    if __name__ == '__main__':
        app.run_server()

我正在使用这个代码。将样式作为“内联块”添加到代码中,以使两个图形保持一致。 在一个html块中包含两个图形

dcc.Graph(id='my_graph1',style={'width':1000, 'display': 'inline-block'},
        figure=go.Figure(
            data =[trace1, trace2],
            layout = go.Layout(
            title=' nifty',

            xaxis=dict(
                #domain=[0.03, 0.9]
                title='Date',
            ),
            yaxis=dict(
                title='Nifty',
                side='right',
            ), 
        ),

dcc.Graph(id='Pie',style={'width': 500, 'display': 'inline-block'},
),

html.Hr(),

希望你能拿着这个修改一下

我正在使用此代码。将样式作为“内联块”添加到代码中,以使两个图形保持一致。 在一个html块中包含两个图形

dcc.Graph(id='my_graph1',style={'width':1000, 'display': 'inline-block'},
        figure=go.Figure(
            data =[trace1, trace2],
            layout = go.Layout(
            title=' nifty',

            xaxis=dict(
                #domain=[0.03, 0.9]
                title='Date',
            ),
            yaxis=dict(
                title='Nifty',
                side='right',
            ), 
        ),

dcc.Graph(id='Pie',style={'width': 500, 'display': 'inline-block'},
),

html.Hr(),
希望你能拿着这个修改一下