Browse Source

Plotly

pull/116/head
Jure Šorn 2 years ago
parent
commit
99e545ba54
2 changed files with 6 additions and 4 deletions
  1. 3
      README.md
  2. 7
      index.html

3
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__':

7
index.html

@ -50,7 +50,7 @@
<body>
<header>
<aside>December 21, 2021</aside>
<aside>December 22, 2021</aside>
<a href="https://gto76.github.io" rel="author">Jure Šorn</a>
</header>
@ -2782,7 +2782,8 @@ line(df, x=<span class="hljs-string">'Date'</span>, y=<span class="hljs-string">
figure.update_layout(
yaxis1=dict(title=<span class="hljs-string">'Total Cases'</span>, rangemode=<span class="hljs-string">'tozero'</span>),
yaxis2=dict(title=<span class="hljs-string">'%'</span>, rangemode=<span class="hljs-string">'tozero'</span>, overlaying=<span class="hljs-string">'y'</span>, side=<span class="hljs-string">'right'</span>),
legend=dict(x=<span class="hljs-number">1.1</span>)
legend=dict(x=<span class="hljs-number">1.1</span>),
height=<span class="hljs-number">450</span>
).show()
<span class="hljs-keyword">if</span> __name__ == <span class="hljs-string">'__main__'</span>:
@ -2869,7 +2870,7 @@ $ pyinstaller script.py --add-data '&lt;path&gt;:.' <span class="hljs-comment">
<footer>
<aside>December 21, 2021</aside>
<aside>December 22, 2021</aside>
<a href="https://gto76.github.io" rel="author">Jure Šorn</a>
</footer>

Loading…
Cancel
Save