File tree 1 file changed +20
-1
lines changed
1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ class Dashboard(dict):
161
161
`.get_box()` returns the box located in the dashboard by calling
162
162
its box id as displayed via `.get_preview()`.
163
163
164
- Example: Create a simple Dashboard object
164
+ Example 1 : Create a simple Dashboard object
165
165
```
166
166
import plotly.dashboard_objs as dashboard
167
167
@@ -198,6 +198,25 @@ class Dashboard(dict):
198
198
my_dboard.remove(1)
199
199
# my_dboard.get_preview()
200
200
```
201
+
202
+ Example 2: 4 vertical boxes of equal height
203
+ ```
204
+ import plotly.dashboard_objs as dashboard
205
+
206
+ box_1 = {
207
+ 'type': 'box',
208
+ 'boxType': 'plot',
209
+ 'fileId': 'username:some#',
210
+ 'title': 'box 1'
211
+ }
212
+
213
+ my_dboard = dashboard.Dashboard()
214
+ my_dboard.insert(box_1)
215
+ my_dboard.insert(box_1, 'below', 1)
216
+ my_dboard.insert(box_1, 'below', 1)
217
+ my_dboard.insert(box_1, 'below', 3)
218
+ # my_dboard.get_preview()
219
+ ```
201
220
"""
202
221
def __init__ (self , content = None ):
203
222
if content is None :
You can’t perform that action at this time.
0 commit comments