# XY Chart - Stacked Bar Chart Labels

**URL:** <https://forum.inductiveautomation.com/t/xy-chart-stacked-bar-chart-labels/79442>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [September 21, 2023, 9:49am UTC](https://forum.inductiveautomation.com/t/xy-chart-stacked-bar-chart-labels/79442 "2023-09-21T09:49:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ross\_warwick](https://avatars.discourse-cdn.com/v4/letter/r/3bc359/32.png) [@ross\_warwick](https://forum.inductiveautomation.com/u/ross_warwick)\
**Post date:** [September 21, 2023, 9:49am UTC](https://forum.inductiveautomation.com/t/xy-chart-stacked-bar-chart-labels/79442/1 "2023-09-21T09:49:00Z")

</div>

I've checked the forum for someone with the same question but I don't anyone has.

I've got a XY Chart Stacked Bar Chart and I want to display the values on the chart (like the below image). I created an extra series as a line graph and displayed the bullets as labels but this only works for the bottom bar as the other line series aren't stacked and will display with there y relative to the bottom of the chart not the other values.

When I hover over the chart the tooltip displays in the correct locations. I don't think I'm missing anything obvious but if anyone has any ideas or solutions, please point me in the right direction.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/8/4820b7155062fd0f60b34f19389fc287a7306c12.png)

---

<div class="post-metadata">

**Author:** ![Noah\_Casey](https://avatars.discourse-cdn.com/v4/letter/n/e480ec/32.png) [@Noah\_Casey](https://forum.inductiveautomation.com/u/Noah_Casey)\
**Post date:** [April 9, 2025, 8:06pm UTC](https://forum.inductiveautomation.com/t/xy-chart-stacked-bar-chart-labels/79442/2 "2025-04-09T20:06:20Z")

</div>

Bumping this post.. has anyone found a solution?

amCharts documentation:

> **[Stacked Column Chart - amCharts](https://www.amcharts.com/demos-v4/stacked-column-chart-v4/)**
>
> Stacked bar charts are useful to demonstrate how a larger data category is comprised of smaller categories, and what part each of the smaller categories plays in the total of a larger one.

---

<div class="post-metadata">

**Author:** ![Eric\_Meyer](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/eric_meyer/32/72323_2.png) [@Eric\_Meyer](https://forum.inductiveautomation.com/u/Eric_Meyer)\
**Post date:** [April 10, 2025, 3:43pm UTC](https://forum.inductiveautomation.com/t/xy-chart-stacked-bar-chart-labels/79442/3 "2025-04-10T15:43:27Z")

</div>

I'm thinking you would need to follow the steps in this post, but you'd have to add a new line for each data point / each stack (not just a totalizer amount):

> [@How to display values above columns in XY Chart?](https://forum.inductiveautomation.com/t/how-to-display-values-above-columns-in-xy-chart/41337/14):
>
> Can do it this way.

Then you can adjust where the label shows up on your stacked bar chart by adjusting the dx and dy settings.

---

<div class="post-metadata">

**Author:** ![crumberger](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/crumberger/32/79956_2.png) [@crumberger](https://forum.inductiveautomation.com/u/crumberger)\
**Post date:** [July 2, 2025, 12:41pm UTC](https://forum.inductiveautomation.com/t/xy-chart-stacked-bar-chart-labels/79442/5 "2025-07-02T12:41:35Z")

</div>

This might work if you're using a single bar, but stacked makes it messy. It doesn't account for the bars being stacked, so the points end up being based off the value completely unrelated to where the stacked bar is. I didn't even bother trying to use an positioning offset, because my graph is dynamic, so unless you're manually feeding the points in and it'll never change, then you're going to end up with scrambled points if the bars change values.

Honestly, at this point I would be thrilled if the tooltip could just permanently affix itself to each bar without having to hover over it.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/8/98f1469d856b2f20450b0341b3f2afbcca05dc21.png)
