小编nat*_*ill的帖子

情节表达情节已经褪色

我在 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)

python plotly jupyter-notebook plotly-express

6
推荐指数
1
解决办法
2148
查看次数

标签 统计

jupyter-notebook ×1

plotly ×1

plotly-express ×1

python ×1