Skip to content

Commit d5e2284

Browse files
corrected quotation mark type
1 parent 886078f commit d5e2284

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/python/horizontal-bar-charts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,15 +258,15 @@ legend_rank_by_category={
258258
}
259259

260260
# Add bars
261-
for col in df[["Disagree","Strongly Disagree","Agree","Strongly Agree","Neither Agree nor Disagree"]]:
261+
for col in ["Disagree","Strongly Disagree","Agree","Strongly Agree","Neither Agree nor Disagree"]:
262262
fig.add_trace(go.Bar(
263263
y=df["Category"],
264264
x=df[col],
265265
name=col,
266266
orientation='h',
267267
marker=dict(color=color_by_category[col]),
268268
legendrank=legend_rank_by_category[col],
269-
xaxis=f"x{1+(col=="Neither Agree nor Disagree")}", # in this context, putting "Neither Agree nor Disagree" on a secondary x-axis on a different domain
269+
xaxis=f"x{1+(col=='Neither Agree nor Disagree')}", # in this context, putting "Neither Agree nor Disagree" on a secondary x-axis on a different domain
270270
# yields results equivalent to subplots with far less code
271271
)
272272
)

0 commit comments

Comments
 (0)