Spaces:
Sleeping
Sleeping
Update dashboard.py
Browse files- dashboard.py +12 -1
dashboard.py
CHANGED
@@ -125,7 +125,18 @@ button2 = pn.widgets.Button(name="Entity/Relation Types:", button_type="warning"
|
|
125 |
button3 = pn.widgets.Button(name="Top Key Entities", button_type="warning", icon="chart-bar", styles={"width": "100%"})
|
126 |
button4 = pn.widgets.Button(name="Ontology Coverage", button_type="warning", icon="chart-dots-filled", styles={"width": "100%"})
|
127 |
button5 = pn.widgets.Button(name="Causal Relation Chord Diagrams", button_type="warning", icon="chart-dots-filled", styles={"width": "100%"})
|
128 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
|
130 |
entRelsButton = pn.widgets.RadioButtonGroup(name='### Select', options=['Entity','Relation'], value = 'Entity' )
|
131 |
|
|
|
125 |
button3 = pn.widgets.Button(name="Top Key Entities", button_type="warning", icon="chart-bar", styles={"width": "100%"})
|
126 |
button4 = pn.widgets.Button(name="Ontology Coverage", button_type="warning", icon="chart-dots-filled", styles={"width": "100%"})
|
127 |
button5 = pn.widgets.Button(name="Causal Relation Chord Diagrams", button_type="warning", icon="chart-dots-filled", styles={"width": "100%"})
|
128 |
+
# Define child buttons
|
129 |
+
child_button_1 = pn.widgets.Button(name="Child 1", button_type="primary")
|
130 |
+
child_button_2 = pn.widgets.Button(name="Child 2", button_type="primary")
|
131 |
+
child_button_3 = pn.widgets.Button(name="Child 2", button_type="primary")
|
132 |
+
child_button_4 = pn.widgets.Button(name="Child 2", button_type="primary")
|
133 |
+
child_button_5 = pn.widgets.Button(name="Child 2", button_type="primary")
|
134 |
+
# Layout: dendrogram-style using vertical + indent
|
135 |
+
tree_layout = pn.Column(
|
136 |
+
button5,
|
137 |
+
pn.Row(pn.Spacer(width=40), # indent
|
138 |
+
pn.Column(child_button_1, child_button_2,child_button_3,child_button_4, child_button_5))
|
139 |
+
)
|
140 |
|
141 |
entRelsButton = pn.widgets.RadioButtonGroup(name='### Select', options=['Entity','Relation'], value = 'Entity' )
|
142 |
|