Commit 72af7c7955
Unsigned
Layout: unified · split
.github/workflows/pylint.yml +1 −1
| @@ -17,7 +17,7 @@ jobs: | |||
| 17 | - name: Install dependencies | 17 | - name: Install dependencies |
| 18 | run: | | 18 | run: | |
| 19 | python -m pip install --upgrade pip | 19 | python -m pip install --upgrade pip |
| 20 | pip install pylint pandas | 20 | pip install pylint pandas dash plotly.express |
| 21 | - name: Analysing the code with pylint | 21 | - name: Analysing the code with pylint |
| 22 | run: | | 22 | run: | |
| 23 | pylint $(git ls-files '*.py') | 23 | pylint $(git ls-files '*.py') |
project_management/dash/app.py +10 −1
| @@ -1,3 +1,7 @@ | |||
| 1 | """ | ||
| 2 | Extensible dashboard for project status. | ||
| 3 | """ | ||
| 4 | |||
| 1 | # Import packages | 5 | # Import packages |
| 2 | from dash import Dash, html, dash_table, dcc | 6 | from dash import Dash, html, dash_table, dcc |
| 3 | import pandas as pd | 7 | import pandas as pd |
| @@ -32,7 +36,12 @@ app.layout = [ | |||
| 32 | ), | 36 | ), |
| 33 | style = {'flex-grow':'1'} | 37 | style = {'flex-grow':'1'} |
| 34 | ) | 38 | ) |
| 35 | ], style = {'display':'flex', 'flex-wrap':'wrap', 'justify-content':'space-between', 'align-items':'center'}), | 39 | ], |
| 40 | style = { | ||
| 41 | 'display':'flex', | ||
| 42 | 'flex-wrap':'wrap', | ||
| 43 | 'justify-content':'space-between', | ||
| 44 | 'align-items':'center'}), | ||
| 36 | dcc.Graph( | 45 | dcc.Graph( |
| 37 | figure=px.pie( | 46 | figure=px.pie( |
| 38 | df, | 47 | df, |