Hi,
With fig.update_traces(textposition="outside", textangle=0 )
, chart plus text over the background will not able to fully display.
With fig.update_traces(textposition="inside", textangle=0 )
, chart too short will not fully display the text amount as well.
So, is there any way to make it win-win situation?
fig = px.bar(pie_bar_gp, x='Amount', y='Product', title='Pie-Bar' ,orientation='h'
,text='Amount', text_auto=",.2f"
)
fig.update_layout(barmode="group")
fig.update_layout({
'paper_bgcolor': 'rgba(0, 0, 0, 0)',
})
chart with:
fig.update_traces(textposition="inside", textangle=0 )
fig.update_traces(textposition="outside", textangle=0 )