From 99e545ba54669274a775d91afddd9da0c9c207d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Wed, 22 Dec 2021 13:55:17 +0100 Subject: [PATCH] Plotly --- README.md | 3 ++- index.html | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0ca6cce..76ac31d 100644 --- a/README.md +++ b/README.md @@ -3436,7 +3436,8 @@ def display_data(df): figure.update_layout( yaxis1=dict(title='Total Cases', rangemode='tozero'), yaxis2=dict(title='%', rangemode='tozero', overlaying='y', side='right'), - legend=dict(x=1.1) + legend=dict(x=1.1), + height=450 ).show() if __name__ == '__main__': diff --git a/index.html b/index.html index 38732fd..c12d42b 100644 --- a/index.html +++ b/index.html @@ -50,7 +50,7 @@
- +
@@ -2782,7 +2782,8 @@ line(df, x='Date', y= figure.update_layout( yaxis1=dict(title='Total Cases', rangemode='tozero'), yaxis2=dict(title='%', rangemode='tozero', overlaying='y', side='right'), - legend=dict(x=1.1) + legend=dict(x=1.1), + height=450 ).show() if __name__ == '__main__': @@ -2869,7 +2870,7 @@ $ pyinstaller script.py --add-data '<path>:.'