You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title="It is the responsibility of government to reduce income differences (U.S. States)",
270
+
xaxis=dict(
271
+
title="Percentage of Responses (Diverging Categories)",
272
+
zeroline=True,
273
+
zerolinecolor="black",
274
+
range=[-50, 50],
275
+
domain=[0, 0.8]
276
+
),
277
+
xaxis2=dict(
278
+
title="Neutral Responses (%)",
279
+
range=[0, 30],
280
+
domain=[0.85, 1.0]
281
+
),
282
+
yaxis=dict(
283
+
title="State",
284
+
autorange="reversed"
285
+
),
286
+
barmode="relative",
287
+
plot_bgcolor="white",
288
+
height=600,
289
+
width=1000,
290
+
legend=dict(
291
+
orientation="h",
292
+
yanchor="bottom",
293
+
y=1.02,
294
+
xanchor="center",
295
+
x=0.5
296
+
)
297
+
)
298
+
299
+
300
+
fig.show()
219
301
220
302
### Bar Chart with Line Plot
221
303
@@ -335,4 +417,4 @@ fig.show()
335
417
336
418
### Reference
337
419
338
-
See more examples of bar charts and styling options [here](https://plotly.com/python/bar-charts/).<br> See https://plotly.com/python/reference/bar/ for more information and chart attribute options!
420
+
See more examples of bar charts and styling options [here](https://plotly.com/python/bar-charts/).<br> See https://plotly.com/python/reference/bar/ for more information and chart attribute options!
0 commit comments