Spaces:
Sleeping
Sleeping
Update dashboard.py
Browse files- dashboard.py +5 -8
dashboard.py
CHANGED
@@ -289,12 +289,9 @@ def generate_radio_buttons(value):
|
|
289 |
# https://tabler-icons.io/
|
290 |
button1 = pn.widgets.Button(name="Introduction", button_type="warning", icon="file-info", styles={"width": "100%"})
|
291 |
button2 = pn.widgets.Button(name="AECO Macro Topics", button_type="warning", icon="chart-histogram", styles={"width": "100%"})
|
292 |
-
|
293 |
-
#button4 = pn.widgets.Button(name="Top Key Entities", button_type="warning", icon="chart-dots-filled", styles={"width": "100%"})
|
294 |
-
#button5 = pn.widgets.Button(name="Entity Chord Diagrams", button_type="warning", icon="chart-dots-filled", styles={"width": "100%"})
|
295 |
-
#button3 = pn.widgets.Button(name="Research Collaboration Networks: Institutes", button_type="warning", icon="chart-dots-3", styles={"width": "100%"})
|
296 |
#button4 = pn.widgets.Button(name="Research Collaboration Networks: Authors", button_type="warning", icon="chart-dots-3", styles={"width": "100%"})
|
297 |
-
|
298 |
|
299 |
region1 = pn.widgets.RadioButtonGroup(name='### Select News Region', options=regions)
|
300 |
|
@@ -340,7 +337,7 @@ def show_page(page_key):
|
|
340 |
|
341 |
button1.on_click(lambda event: show_page("Page1"))
|
342 |
button2.on_click(lambda event: show_page("Page2"))
|
343 |
-
|
344 |
#button4.on_click(lambda event: show_page("Page4"))
|
345 |
#button5.on_click(lambda event: show_page("Page5"))
|
346 |
#button6.on_click(lambda event: show_page("Page6"))
|
@@ -379,7 +376,7 @@ def CreatePage2():
|
|
379 |
def CreatePage3():
|
380 |
return pn.Column(
|
381 |
macro_topics_button,
|
382 |
-
|
383 |
align="center",
|
384 |
)
|
385 |
|
@@ -419,7 +416,7 @@ mapping = {
|
|
419 |
}
|
420 |
|
421 |
#################### SIDEBAR LAYOUT ##########################
|
422 |
-
sidebar = pn.Column(pn.pane.Markdown("## Pages"), button1,button2
|
423 |
#button4,
|
424 |
#button5,
|
425 |
#button6,
|
|
|
289 |
# https://tabler-icons.io/
|
290 |
button1 = pn.widgets.Button(name="Introduction", button_type="warning", icon="file-info", styles={"width": "100%"})
|
291 |
button2 = pn.widgets.Button(name="AECO Macro Topics", button_type="warning", icon="chart-histogram", styles={"width": "100%"})
|
292 |
+
button3 = pn.widgets.Button(name="Research Collaboration Networks: Institutes", button_type="warning", icon="chart-dots-3", styles={"width": "100%"})
|
|
|
|
|
|
|
293 |
#button4 = pn.widgets.Button(name="Research Collaboration Networks: Authors", button_type="warning", icon="chart-dots-3", styles={"width": "100%"})
|
294 |
+
#button5 = pn.widgets.Button(name="Entity Chord Diagrams", button_type="warning", icon="chart-dots-filled", styles={"width": "100%"})
|
295 |
|
296 |
region1 = pn.widgets.RadioButtonGroup(name='### Select News Region', options=regions)
|
297 |
|
|
|
337 |
|
338 |
button1.on_click(lambda event: show_page("Page1"))
|
339 |
button2.on_click(lambda event: show_page("Page2"))
|
340 |
+
button3.on_click(lambda event: show_page("Page3"))
|
341 |
#button4.on_click(lambda event: show_page("Page4"))
|
342 |
#button5.on_click(lambda event: show_page("Page5"))
|
343 |
#button6.on_click(lambda event: show_page("Page6"))
|
|
|
376 |
def CreatePage3():
|
377 |
return pn.Column(
|
378 |
macro_topics_button,
|
379 |
+
# pn.bind(create_bar_charts, region1),
|
380 |
align="center",
|
381 |
)
|
382 |
|
|
|
416 |
}
|
417 |
|
418 |
#################### SIDEBAR LAYOUT ##########################
|
419 |
+
sidebar = pn.Column(pn.pane.Markdown("## Pages"), button1,button2,button3,
|
420 |
#button4,
|
421 |
#button5,
|
422 |
#button6,
|