Fix error bars in hello_world.py
As the argument names suggest, Plotly Express uses relative values
for error_y and error_y_minus.
Change-Id: Iabfc017eb6f97b4f0329d47f7f8f0851756154a2
diff --git a/examples/hello_world.py b/examples/hello_world.py
index 6ac91cc..22af0b9 100755
--- a/examples/hello_world.py
+++ b/examples/hello_world.py
@@ -14,7 +14,9 @@
df['Year'] = [y for c in COUNTRIES for y in YEARS]
df['Country'] = [c for c in COUNTRIES for y in YEARS]
+df['error_y'] = df["conf.high"] - df["ipm"]
+df['error_y_minus'] = df["ipm"] - df["conf.low"]
fig = px.line(df, title=QUERY, x="Year", y="ipm", color="Country",
- error_y="conf.high", error_y_minus="conf.low")
+ error_y="error_y", error_y_minus="error_y_minus")
fig.show()