Skip to content

Commit bd10f20

Browse files
cyan-> dark slate blue; conditional coloring of text on bars to -> ghostwhite
1 parent 123c6b9 commit bd10f20

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
@@ -118,7 +118,7 @@ import plotly.graph_objects as go
118118
top_labels = ['Strongly<br>agree', 'Agree', 'Neutral', 'Disagree',
119119
'Strongly<br>disagree']
120120

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy