Skip to content

Commit

Permalink
Fiddling with mobile compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
thewchan committed Jun 27, 2020
1 parent b7bb383 commit 97ce240
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 9 deletions.
7 changes: 2 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
bokeh==2.1.0
dill==0.3.1.1
bokeh==2.1.1
flask==1.1.2
gunicorn==19.9.0
jinja2==2.11.2
pandas==1.0.5
pip==20.1.1
requests==2.20.0
simplejson==3.17.0
requests==2.24.0
2 changes: 1 addition & 1 deletion runtime.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python-3.7.7
python-3.8.3
5 changes: 5 additions & 0 deletions static/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ h1 {
margin:.67em 0
}

.bokeh {
width:100%;
max-width:800px;
}

hr {
-webkit-box-sizing:content-box;
box-sizing:content-box;
Expand Down
2 changes: 1 addition & 1 deletion templates/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<div class="pure-menu pure-menu-horizontal">
<a href="{{ url_for('index') }}" class="pure-menu-heading pure-menu-link">A Simple Stock Price Visualizer</a>
</ul>
</div>
</div>
<header>
<h2>About</h2>
<p>
Expand Down
3 changes: 1 addition & 2 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@
</li>
</ul>
</div>

</div>
<div id="myplot"></div>
<div class="bokeh" id="myplot"></div>
<div id="error">
<p>{{ error }}</p>
</div>
Expand Down
1 change: 1 addition & 0 deletions ticker.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def build_plot(symbol):
formatters={'@x': 'datetime'})
p.add_tools(hover)
p.toolbar.active_inspect = hover
p.sizing_mode = 'stretch_width'

return p

Expand Down

0 comments on commit 97ce240

Please sign in to comment.