我在 Jupyter 笔记本中的plotlyexpress 上遇到问题。图中的颜色已褪色,并且与图例中应有的颜色不匹配。有没有人有什么建议?很高兴提供更多信息,但我不确定什么有用 - 我对 Python 仍然很陌生。
fig = px.bar(funded_apps_mask_kewt, x='Grant Expended CY Quarter', y='Grant
Expended Amount', color='AMI Status',title='Long-Form Input')
fig.update_xaxes(categoryorder='category ascending')
fig.show()
AMI Statu | Grant Exp | Grant Exp Q | Grant Exp Q | Grant Exp Year | Grant Exp QY
0 Very Low (50%) 20086.72 Q4 2020 Q4 2020 2020 Q4
1 Urgent Need (120%)20086.7 Q4 2020 Q4 2020 2020 Q4
2 Urgent Need (120%)20086.72 Q4 2020 Q4 2020 2020 Q4
3 Very Low (50%) …Run Code Online (Sandbox Code Playgroud)