Skip to content

Commit

Permalink
Merge pull request #9 from CityofToronto/update-docs
Browse files Browse the repository at this point in the history
updated readme and requirements to reflect changes made from Dash update #4
  • Loading branch information
radumas authored Jul 16, 2019
2 parents 9e25f28 + 534c7ec commit 1fe0288
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ Dashboard for travel times for internal management. This dashboard displays aver

The layout of the code is inspired by the Model-View-Controller paradigm, specifically from [this Dash tutorial](https://dev.to/alysivji/interactive-web-based-dashboards-in-python-5hf). In addition, parameters and constants that someone would want to change when forking this are frontloaded in ALL_CAPS variables, in order to make modification easier. The names of DIVs used in callbacks are also stored in variables in order to reduce the risk of bugs since variable names are linted to see if they exist.

In addition to some of the plot styling being in these variables, [two css stylesheets](https://github.com/CityofToronto/bdit_king_pilot_dashboard/tree/gh-pages/css) are loaded from the `gh-pages` branch to style the table and buttons. For... reasons, these can't be loaded from local files ¯\_(ツ)_/¯.

### Other thing to note

In order to add the "viewport" html `meta` tag to the `<head>` of the page, `dash.Dash` had to subclassed and its `index()` method overwritten, this class is stored in `dash_responsive.py`.
In addition to some of the plot styling being in these variables, [two css stylesheets](https://github.com/CityofToronto/bdit_traffic_dashboard/tree/master/assets) are loaded from local files.

#### Detecting row clicks

Expand Down
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
dash==0.19.0
dash-core-components==0.15.0rc1
dash-html-components==0.8.0
dash-renderer==0.11.0
plotly==2.1.0
dash==1.0.1
dash-core-components==1.0.0
dash-html-components==1.0.0
dash-renderer==1.0.0
plotly==3.7.0
python-dateutil
psycopg2
gunicorn
Expand Down

0 comments on commit 1fe0288

Please sign in to comment.