Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
cyan-> dark slate blue; conditional coloring of text on bars to -> gh…
…ostwhite
  • Loading branch information
rl-utility-man authored Jun 9, 2025
commit bd10f207b5c6fce173aae5fbbd2bdd0eb7a68e2d
4 changes: 2 additions & 2 deletions doc/python/horizontal-bar-charts.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ import plotly.graph_objects as go
top_labels = ['Strongly<br>agree', 'Agree', 'Neutral', 'Disagree',
'Strongly<br>disagree']

colors = ['DarkBlue', 'MediumBlue', 'cyan', 'mediumpurple', 'thistle']
colors = ['DarkBlue', 'MediumBlue', 'DarkSlateBlue', 'mediumpurple', 'thistle']
x_data = [[21, 30, 21, 16, 12],
[24, 31, 19, 15, 11],
[27, 26, 23, 11, 13],
Expand Down Expand Up @@ -197,7 +197,7 @@ for yd, xd in zip(y_data, x_data):
x=space + (xd[i]/2), y=yd,
text=str(xd[i]) + '%',
font=dict(family='Arial', size=14,
color=f"{'white'*(i<2)}{'black'*(i>=2)}"),
color='ghostwhite'),
showarrow=False))
# labeling the Likert scale
if yd == y_data[-1]:
Expand Down