Fix graphs display from 0 to 100

This commit is contained in:
Marty Oehme 2022-09-02 10:02:45 +02:00
parent a66223481d
commit e5188cad5a
Signed by: Marty
GPG Key ID: B7538B8F50A1C800
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ def gini_plot(country_df):
if svg_render:
pio.renderers.default = "png"
fig = px.line(country_df, x="year", y="gini", markers=True, labels={"year": "Year", "gini": "Gini coefficient"}, template="seaborn", range_y=[30,60])
fig = px.line(country_df, x="year", y="gini", markers=True, labels={"year": "Year", "gini": "Gini coefficient"}, template="seaborn", range_y=[0,100])
fig.update_traces(marker_size=10)
fig.show()