I would like to add text in the middle of single category/bar by ('Rank') instead of legend. Please advise if this is achieveable in python ?
My code below:
ax = sns.histplot(data=dfnew2, multiple='stack', x = 'Purpose', weights = 'Credit amount', hue='Rank',shrink=0.8, legend = True)
ax.set(ylabel='Credit Amount', xlabel='Purpose')
ax.tick_params(axis="x", labelrotation=90)