How can I change the size of my Dash Graph?

后端 未结 3 1114
谎友^
谎友^ 2021-01-04 10:40

I\'m running into layout difficulties with the plots on Dash. All the plots I generate with Dash seem to be auto sized to be very narrow, which makes it hard to actually vie

3条回答
  •  一个人的身影
    2021-01-04 11:29

    Alternatively, you can change the viewport sizing in the parent container like:

    dcc.Graph(id='my-graph',style={'width': '90vh', 'height': '90vh'}) 
    

    That will change the graph to be 90% of the viewport height of the browser. You can see more info of viewport on this link.

提交回复
热议问题