python - 单行柱形图plotly python
问题描述
当我在一列中有多行时,它能够正确绘制,否则无法正确绘制。
请找到下面的代码
fig = px.bar(result, x = attributeName, y = "GapCount",text="GapCount",template="simple_white")
fig.update_traces(marker_color='rgb(158,202,225)', marker_line_color='rgb(8,48,107)',
marker_line_width=1.5, opacity=0.6,textposition='auto')
请在下面的图表中找到
当第二个图表中的单行可用时,我希望有一个单条。
解决方案
推荐阅读
- php - SQL 命令正在执行,但在 mysqli 连接中返回 false
- bash - 用bash变量替换curl命令中的IP
- css - 下拉菜单无法正常工作
- javascript - 当shell有同名程序时如何运行全局npm可执行文件
- javascript - 在状态定义中添加条件是一种好习惯吗?
- python - 如何在python中较大的黑色背景的中心嵌入一张小照片?
- c# - 如何在 ASP.NET MVC 中使用 ActionResult 返回带有声明的 Xml?
- vba - Loop thought my Outlook inbox using vba
- c# - How to convert whole XAML file to System.Windows.Media.Geometry object?
- utf-8 - Google Actions - 使用 AWS API Gateway 时的 UTF-8 解码