|
11 | 11 |
|
12 | 12 | external_stylesheets = [ |
13 | 13 | { |
14 | | - "href": "https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap", |
| 14 | + "href": "https://fonts.googleapis.com/css2?" |
| 15 | + "family=Lato:wght@400;700&display=swap", |
15 | 16 | "rel": "stylesheet", |
16 | 17 | }, |
17 | 18 | ] |
18 | 19 | app = dash.Dash(__name__, external_stylesheets=external_stylesheets) |
19 | 20 | server = app.server |
20 | 21 | app.title = "Avocados Analytics: Understand Your Avocados!" |
| 22 | + |
21 | 23 | app.layout = html.Div( |
22 | 24 | children=[ |
23 | 25 | html.Div( |
24 | 26 | children=[ |
25 | 27 | html.P(children="🥑", className="header-emoji"), |
26 | | - html.H1(children="Avocados Analytics", className="header-title"), |
| 28 | + html.H1( |
| 29 | + children="Avocados Analytics", className="header-title" |
| 30 | + ), |
27 | 31 | html.P( |
28 | 32 | children="Analyze the behaviour of prices" |
29 | 33 | " and the number of avocados sold in the US" |
|
68 | 72 | ), |
69 | 73 | html.Div( |
70 | 74 | children=[ |
71 | | - html.Div(children="Date Range", className="menu-title"), |
| 75 | + html.Div( |
| 76 | + children="Date Range", |
| 77 | + className="menu-title" |
| 78 | + ), |
72 | 79 | dcc.DatePickerRange( |
73 | 80 | id="date-range", |
74 | 81 | min_date_allowed=data.Date.min().date(), |
@@ -149,7 +156,7 @@ def update_charts(region, avocado_type, start_date, end_date): |
149 | 156 | }, |
150 | 157 | ], |
151 | 158 | "layout": { |
152 | | - "title": {"text": "Avocados Sold", "x": 0.05, "xanchor": "left",}, |
| 159 | + "title": {"text": "Avocados Sold", "x": 0.05, "xanchor": "left"}, |
153 | 160 | "xaxis": {"fixedrange": True}, |
154 | 161 | "yaxis": {"fixedrange": True}, |
155 | 162 | "colorway": ["#E12D39"], |
|
0 commit comments