Plotly deactivate x axis sorting

后端 未结 2 1238
南旧
南旧 2021-01-18 08:16

I want to plot a bar chart. On the x-axis are IDs of consultants. They range between 1000 and 2000. Each consultant has a specific number of customers (y-axis).

Now

2条回答
  •  不要未来只要你来
    2021-01-18 08:50

    The lastest version of Plotly now has a variable in the layout options to specify a categorical layout for the X axis:

    fig.update_layout(
    xaxis_type = 'category'
    )
    

提交回复
热议问题