Black Lives Matter. Please consider donating to Black Girls Code today.

Question on Color Palette for Bar Chart example in plotly webpage

is the “Color Palette for Bar Chart” shown in https://plot.ly/python/horizontal-bar-charts a workable example?
i tested from my side but it seems to not working as expected.