Skip to content

Commit 5083027

Browse files
Update font size
1 parent 41709aa commit 5083027

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787

8888
scatter_plot_card = dbc.Card(
8989
dbc.CardBody(
90-
[html.H6('Total Deaths by Earthquake Magnitude', className = 'card-title',
90+
[html.H6('Top 10 Countries\' Total Deaths by Earthquake Magnitude', className = 'card-title',
9191
style = {'margin-bottom': '0px'}),
9292
html.Iframe(
9393
id = 'scatter_plot',
@@ -100,7 +100,7 @@
100100

101101
bar_chart_card = dbc.Card(
102102
dbc.CardBody(
103-
[html.H6('Top 10 most intense tsunami in given years', className = 'card-title',
103+
[html.H6('10 Most Intense Tsunamis by Country', className = 'card-title',
104104
style = {'margin-bottom': '0px'}),
105105
html.Iframe(
106106
id = 'bar_plot',

src/components/scatter_plot.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ def create_scatter_plot(year_start=1900, year_end=2022, countries=[]):
1515
color='country',
1616
tooltip=['year', 'mercalli_intensity', 'country', 'total_deaths']
1717
).interactive(
18-
).properties(width=180, height=175)
18+
).properties(
19+
width=200, height=175
20+
).configure_legend(
21+
titleFontSize=10,
22+
labelFontSize=7
23+
)
1924
return chart.to_html()
2025

2126

0 commit comments

Comments
 (0)