Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create dashboard #32

Merged
merged 78 commits into from
Mar 7, 2021
Merged

Create dashboard #32

merged 78 commits into from
Mar 7, 2021

Conversation

RyKoe
Copy link
Contributor

@RyKoe RyKoe commented Mar 7, 2021

No description provided.

sophiabulcock and others added 30 commits March 1, 2021 13:26
Merging to pull the first two graphs that Ryan made
Copy link
Owner

@WraySmith WraySmith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor comments that should be pretty straightforward to fix and then a couple larger ones that have been put into issues #35 to be fixed in Milestone 4.

Only other general comment is to replace any instances of 'boardgame' with 'board game'.

from dash.dependencies import Input, Output, State
import dash_table

# import functions from Ryans .py files
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should probably just say import functions from .py files


# title


Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra space

html.H5("Welcome to our Boardgames Dashboard"),
html.Div(
id="intro",
children="Explore boardgame trends over time based on category, mechanics and publisher selection below. Also visualize the top categories, mechanics and publishers by year using our interactive features.",
Copy link
Owner

@WraySmith WraySmith Mar 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should probably wrapped to multiple lines within the code. Also change to board game.


# lower description for tab 1


Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra space

children=[
html.H4("Description of Dataset"),
html.P(
" This dataset comes from the Board Game Geek website and includes boardgames with descriptions, general game details, publisher, and user ratings for 10,000 boardgames published between 1950 and 2021."
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrap text in code

html.Br(),
html.Br(),
html.Br(),
],
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's probably a better way to do lots of white space (maybe) but something to table for Milestone 4 - added to issues #35

2000: "2000",
2005: "2005",
2010: "2010",
2015: "2015",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

recommend making a variable for this dictionary (higher up in the files) as it shows up again lower down

step=1,
value=[1990, 2010],
marks={
1950: "1950",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as noted above

Output("output-container-range-slider-non-linear3", "srcDoc"),
Input("non-linear-range-slider", "value"),
)
def update_output3(value):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the following series of functions appear to be all identical, should create a general function that can be called for each of these (added to issues #35 for Milestone 4)

In the interim should add a comment that indicates that we recognize this and will do this in Milestone 4 - we may also modify these bar charts, so not really worth trying to do as it may be removed anways!

@WraySmith WraySmith added this to In progress in Python Dashboard Mar 7, 2021
return html.Div(
id="description-card",
children=[
html.H5("Welcome to our Boardgames Dashboard"),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Board Games as two words

html.Div(
[
html.H4("Board game ratings and counts from 1950 to 2016"),
html.P(
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capitalize

html.H4("Board game ratings and counts from 1950 to 2016"),
html.P(
"Select either categories, mechanics or publishers. Then select up to 5 different elements to view on figure 1 and 2."
),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If not using figure numbers, replace the sentence as follows:
Then select up to 5 different elements to view on the following two figures.

[
# tab 1
dcc.Tab(
label="Game dynamics over time",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

capitalize

html.Label("Select what you want to view:"),
html.Br(),
dcc.RadioItems(
id="radio-selection",
Copy link
Owner

@WraySmith WraySmith Mar 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should put a gap between the radio button and text (assume it's as simple as " Categories")

"""
return html.Div(
children=[
html.H4("Top 5 categories, mechanics and publishers by rating"),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

capitalize

"""
:return: A Div containing dashboard title.
"""
return html.Div(children=[html.H1("Boardgames Trends Dashboard")])
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Board Game

app/functions.py Outdated Show resolved Hide resolved
app/functions.py Outdated Show resolved Hide resolved
app/wrangling.py Outdated Show resolved Hide resolved
app/wrangling.py Outdated Show resolved Hide resolved
app/wrangling.py Outdated Show resolved Hide resolved
app/wrangling.py Outdated Show resolved Hide resolved
app/wrangling.py Outdated Show resolved Hide resolved
app/wrangling.py Outdated Show resolved Hide resolved
@WraySmith WraySmith merged commit 204687e into main Mar 7, 2021
@WraySmith WraySmith deleted the create-dashboard branch March 7, 2021 20:32
@WraySmith WraySmith moved this from In progress to Done in Python Dashboard Mar 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

Create Python Dash dashboard
4 participants