Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def plot_timeline(yaxis, citi = ['المدينه', 'بغداد', 'كوفة', 'ب
|
|
26 |
if min_year >= max_year:
|
27 |
raise gr.error('Min Year Cannot be Bigger than Max Year!')
|
28 |
filtered = taraf_s[taraf_s['City'].isin(citi) & (taraf_s['Year'] >= min_year) & (taraf_s['Year'] <= max_year)]
|
29 |
-
fig = px.line(data_frame = filtered, x = 'Year', y = yaxis, title = f"{yaxis} per Year", color = 'City' )
|
30 |
fig.update_layout(title_font_color = 'red', title_x = .5)
|
31 |
return fig
|
32 |
|
|
|
26 |
if min_year >= max_year:
|
27 |
raise gr.error('Min Year Cannot be Bigger than Max Year!')
|
28 |
filtered = taraf_s[taraf_s['City'].isin(citi) & (taraf_s['Year'] >= min_year) & (taraf_s['Year'] <= max_year)]
|
29 |
+
fig = px.line(data_frame = filtered, x = 'Year', y = yaxis, title = f"{yaxis} per Year", color = 'City', template = 'plotly_dark' )
|
30 |
fig.update_layout(title_font_color = 'red', title_x = .5)
|
31 |
return fig
|
32 |
|