# How to add space between category bars - XY Chart

**URL:** <https://forum.inductiveautomation.com/t/how-to-add-space-between-category-bars-xy-chart/47966>\
**Category:** Ignition\
**Created:** [June 18, 2021, 7:07pm UTC](https://forum.inductiveautomation.com/t/how-to-add-space-between-category-bars-xy-chart/47966 "2021-06-18T19:07:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![nicholas.robinson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nicholas.robinson/32/22188_2.png) [@nicholas.robinson](https://forum.inductiveautomation.com/u/nicholas.robinson)\
**Post date:** [June 19, 2021, 2:54am UTC](https://forum.inductiveautomation.com/t/how-to-add-space-between-category-bars-xy-chart/47966/2 "2021-06-19T02:54:55Z")

</div>

I fixed this by adding blanks in the list comprehension from the source dataset tag and then adding 2 additional series one before and one after the actual 3 columns I want with their labels hidden from the legend.

Not sure if this is the best way to do it but it works.

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

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

Cheers,

Nick

---

_[View the full topic](https://forum.inductiveautomation.com/t/how-to-add-space-between-category-bars-xy-chart/47966)._
