Skip to content

Commit

Permalink
Updated graph properties
Browse files Browse the repository at this point in the history
  • Loading branch information
gyetman committed Dec 23, 2021
1 parent 8e7e053 commit 7cf62bc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/apps/site_selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@
NEW_INDEX = list(range(2020,2051,5))
SSPS = [f'SSP{x}' for x in range(1,6)]

SSPS_LABELS = {
'SSP1':'Sustainability',
'SSP2':'Middle of the Road',
'SSP3':'Regional Rivalry',
'SSP4':'Inequality',
'SSP5':'Fossil-fueled development'
}
def get_style(feature):
return dict()
def get_d_style(feature):
Expand Down Expand Up @@ -473,6 +480,11 @@ def plot_pop_projection(feature):
## make the graph and return it

fig = go.Figure()
fig.update_layout(
title="Shared Socioecomic Pathways Population Projections",
xaxis_title = 'Year',
yaxis_title= 'Population'
)
for ssp in SSPS:
fig.add_trace(go.Scatter(
x = list(ssps.index),
Expand Down

0 comments on commit 7cf62bc

Please sign in to comment.