# Bars distance in XY Chart

**URL:** <https://forum.inductiveautomation.com/t/bars-distance-in-xy-chart/54914>\
**Category:** Ignition\
**Tags:** perspective, ignition81, ignition80\
**Created:** [January 12, 2022, 7:44am UTC](https://forum.inductiveautomation.com/t/bars-distance-in-xy-chart/54914 "2022-01-12T07:44:38Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![matthew.ayre](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matthew.ayre/32/19499_2.png) [@matthew.ayre](https://forum.inductiveautomation.com/u/matthew.ayre)\
**Post date:** [January 12, 2022, 1:48pm UTC](https://forum.inductiveautomation.com/t/bars-distance-in-xy-chart/54914/5 "2022-01-12T13:48:38Z")

</div>

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:

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

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 ☹

Let me know if you need further guidance.

---

_[View the full topic](https://forum.inductiveautomation.com/t/bars-distance-in-xy-chart/54914)._
