How to show total in a stacked bar chart and order by total

Yanyan
Yanyan Registered Posts: 1

Hi Dataiku experts,

I have a chart to show actual spend and remains to spend. would like to show total value of each stacked bar and order the bars by total value. I have a workaround solution but visual is not perfect- I added a third dataset Lifetime Total and uncolor the bar, but the result is there is too much white space in the chart. Is there a better way to do it?

stacked bar and total.png

In the end, I would like something like this

desired stacked bar chart.png

Thanks!

Tagged:

Best Answer

  • Yasmine_T
    Yasmine_T Registered Posts: 71 ✭✭✭✭
    Answer ✓

    Hi!

    I hope that you are doing well. This is not a currently available feature with horizontal stacked bars chart, however this can be done with vertical stacked bars chart.

    Screenshot 2025-07-15 at 11.28.10.png

    This would look like this and you would be able to display the total (and modify its spacing with the spacing tool). Example:

    Screenshot 2025-07-15 at 11.29.22.png

    I have brought your interest regarding a feature for display of total count value display for horizontal stacked bar charts internally. In the meantime this would be the best work around here if you want a better visual experience for the display.

    Let me know if you have any further questions!

    Best,

    Yasmine

Setup Info
    Tags
      Help me…