소스 검색

simplify plotly example

Falko Schindler 2 년 전
부모
커밋
b495d093ea
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 4
      website/reference.py

+ 1 - 4
website/reference.py

@@ -335,10 +335,7 @@ To overlay an SVG, make the `viewBox` exactly the size of the image and provide
 
         fig = go.Figure(go.Scatter(x=[1, 2, 3, 4], y=[1, 2, 3, 2.5]))
         fig.update_layout(margin=dict(l=0, r=0, t=0, b=0))
-        # ui.plotly(fig).classes('w-full h-64')
-        # END OF EXAMPLE
-        fig.update_layout(width=280, height=210)
-        ui.plotly(fig)
+        ui.plotly(fig).classes('w-full h-40')
 
     @example(ui.linear_progress, menu)
     def linear_progress_example():