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

View file

@ -44,7 +44,7 @@ def gini_plot(country_df):
if svg_render: if svg_render:
pio.renderers.default = "png" 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.update_traces(marker_size=10)
fig.show() fig.show()