# XY Chart - Bar chart problem

**URL:** <https://forum.inductiveautomation.com/t/xy-chart-bar-chart-problem/101276>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [January 23, 2025, 9:44am UTC](https://forum.inductiveautomation.com/t/xy-chart-bar-chart-problem/101276 "2025-01-23T09:44:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aiasa21](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Aiasa21](https://forum.inductiveautomation.com/u/Aiasa21)\
**Post date:** [January 23, 2025, 9:44am UTC](https://forum.inductiveautomation.com/t/xy-chart-bar-chart-problem/101276/1 "2025-01-23T09:44:22Z")

</div>

Hello, I want to display some data in an XY chart.

The dataset is structured as follows:

- Session\_Date (datetime)
- Timezone (string)
- View\_Count (int)

An example of the dataset:  
Row 1

- 2025-01-15 00:00:00
- Europe/Rome
- 15

Row 2

- 2025-01-15 00:00:00
- America/NewYork
- 32

I would like the result to be separated by date, stacking the counts by timezone.

This is what I have achieved so far, but it’s not what I would like to have

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/7/c76f73ab44622e9e3bd0c4e521edac0ffece759a.png)

---

<div class="post-metadata">

**Author:** ![Alejandro\_Alaco](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alejandro_alaco/32/59849_2.png) [@Alejandro\_Alaco](https://forum.inductiveautomation.com/u/Alejandro_Alaco)\
**Post date:** [January 23, 2025, 9:51am UTC](https://forum.inductiveautomation.com/t/xy-chart-bar-chart-problem/101276/2 "2025-01-23T09:51:18Z")

</div>

If you do a new XY chart you can see you can see 2 different values, you can render them as columns and I think you get something similar to what you want. You can use those as Europe and America. Then from there

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/b/9b23af0a86a18cd4ccd32f1f009a2312dec3fa9f.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/2/02c89f6b6227d026cae891905fd0e0619b9a2c5a.png)  
here maybe process temp as Europe and output temp as America.

---

<div class="post-metadata">

**Author:** ![Aiasa21](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Aiasa21](https://forum.inductiveautomation.com/u/Aiasa21)\
**Post date:** [January 23, 2025, 9:56am UTC](https://forum.inductiveautomation.com/t/xy-chart-bar-chart-problem/101276/3 "2025-01-23T09:56:32Z")

</div>

Thanks for the reply, you mean that I should create in the query 4 different columns (not only Timezone so) and then create 4 series and bind every series to that specific column?

---

<div class="post-metadata">

**Author:** ![Alejandro\_Alaco](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/alejandro_alaco/32/59849_2.png) [@Alejandro\_Alaco](https://forum.inductiveautomation.com/u/Alejandro_Alaco)\
**Post date:** [January 23, 2025, 9:59am UTC](https://forum.inductiveautomation.com/t/xy-chart-bar-chart-problem/101276/4 "2025-01-23T09:59:14Z")

</div>

Yes, I guess bind the Europe series with one column type and America series with another column type, just play with it the XY component values to get the result you want.

---

<div class="post-metadata">

**Author:** ![Aiasa21](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Aiasa21](https://forum.inductiveautomation.com/u/Aiasa21)\
**Post date:** [January 23, 2025, 10:01am UTC](https://forum.inductiveautomation.com/t/xy-chart-bar-chart-problem/101276/5 "2025-01-23T10:01:51Z")

</div>

It works properly in this way, thank you very much.

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