# How can I center bars on my bar chart

**URL:** <https://forum.inductiveautomation.com/t/how-can-i-center-bars-on-my-bar-chart/103239>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [March 4, 2025, 8:25pm UTC](https://forum.inductiveautomation.com/t/how-can-i-center-bars-on-my-bar-chart/103239 "2025-03-04T20:25:31Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [March 4, 2025, 8:42pm UTC](https://forum.inductiveautomation.com/t/how-can-i-center-bars-on-my-bar-chart/103239/2 "2025-03-04T20:42:43Z")

</div>

> [@Bars distance in XY Chart](https://forum.inductiveautomation.com/t/bars-distance-in-xy-chart/54914/5):
>
> Hi @shabir.ahmed, It’s a bit of a fudge, but I managed to achieve it by creating 2 dummy datasources where the value for ‘Cons’ was zero for all instances and then creating them as the first and last series: When doing this make sure the dummy series have their tooltips disabled and the column fill & stroke width & opacity set to zero. Also note that you can’t really control the gap between the groups frowning Let me know if you need further guidance.

---

_[View the full topic](https://forum.inductiveautomation.com/t/how-can-i-center-bars-on-my-bar-chart/103239)._
