Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -436,15 +436,42 @@ combined_chart = alt.vconcat(
|
|
436 |
)
|
437 |
combined_chart
|
438 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
439 |
chart1_panel = pn.pane.Vega(chart1, sizing_mode='stretch_width')
|
|
|
|
|
|
|
|
|
440 |
chart2_panel = pn.pane.Vega(chart2, sizing_mode='stretch_width')
|
|
|
|
|
|
|
|
|
441 |
combined_chart1_panel = pn.pane.Vega(combined_chart1, sizing_mode='stretch_width')
|
442 |
combined_chart2_panel = pn.pane.Vega(combined_chart2, sizing_mode='stretch_width')
|
443 |
combined_chart_panel = pn.pane.Vega(combined_chart, sizing_mode='stretch_width')
|
444 |
|
|
|
445 |
dashboard = pn.Column(
|
446 |
"# Scientific Visualization Project",
|
|
|
|
|
447 |
chart1_panel,
|
|
|
448 |
chart2_panel,
|
449 |
combined_chart1_panel,
|
450 |
combined_chart2_panel,
|
|
|
436 |
)
|
437 |
combined_chart
|
438 |
|
439 |
+
description1 = pn.pane.Markdown("""
|
440 |
+
Our Scientific Visualization Project is designed to provide a comprehensive overview
|
441 |
+
of the process undertaken to reimagine the visual representations based on the scientific study.
|
442 |
+
The visualizations selected for redesign include a bar chart detailing the percentage
|
443 |
+
of different event types occurring within a soccer match and a histogram showcasing
|
444 |
+
the distribution of event frequencies, alongside a spatial plot representing the
|
445 |
+
locations of match events on a soccer field. Each graphic serves a distinct purpose:
|
446 |
+
the bar chart allows for the quick comparison of event prevalence, the histogram
|
447 |
+
provides an understanding of the variability and central tendency of event counts,
|
448 |
+
and the spatial plot conveys the common areas of activity during a match.
|
449 |
+
""")
|
450 |
+
decription2 = pn.pane.Markdown("""
|
451 |
+
The first chart below is a bar chart detailing the percentage
|
452 |
+
of different event types occurring within a soccer match.
|
453 |
+
""")
|
454 |
chart1_panel = pn.pane.Vega(chart1, sizing_mode='stretch_width')
|
455 |
+
decription3 = pn.pane.Markdown("""
|
456 |
+
The second chart below is a histogram showcasing the distribution
|
457 |
+
of event frequencies.
|
458 |
+
""")
|
459 |
chart2_panel = pn.pane.Vega(chart2, sizing_mode='stretch_width')
|
460 |
+
decription3 = pn.pane.Markdown("""
|
461 |
+
The third chart below is a spatial plot representing the locations of
|
462 |
+
match events on a soccer field.
|
463 |
+
""")
|
464 |
combined_chart1_panel = pn.pane.Vega(combined_chart1, sizing_mode='stretch_width')
|
465 |
combined_chart2_panel = pn.pane.Vega(combined_chart2, sizing_mode='stretch_width')
|
466 |
combined_chart_panel = pn.pane.Vega(combined_chart, sizing_mode='stretch_width')
|
467 |
|
468 |
+
|
469 |
dashboard = pn.Column(
|
470 |
"# Scientific Visualization Project",
|
471 |
+
description1,
|
472 |
+
decription2,
|
473 |
chart1_panel,
|
474 |
+
decription3,
|
475 |
chart2_panel,
|
476 |
combined_chart1_panel,
|
477 |
combined_chart2_panel,
|