# Bar chart dont show on iphone but in preview

**URL:** https://community.glideapps.com/t/bar-chart-dont-show-on-iphone-but-in-preview/69179
**Category:** Ask for Help
**Created:** [January 2, 2024, 4:02pm UTC](https://community.glideapps.com/t/bar-chart-dont-show-on-iphone-but-in-preview/69179 "2024-01-02T16:02:29Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![IlseB](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ilseb/32/44063_2.png) [@IlseB](https://community.glideapps.com/u/IlseB)
#### Post date: [January 2, 2024, 4:02pm UTC](https://community.glideapps.com/t/bar-chart-dont-show-on-iphone-but-in-preview/69179/1 "2024-01-02T16:02:29Z")

</div>

Hi,

I have built a bar chart but this is not showing up when i log into my user account on my iphone. i have checked the following:

- its not restricted via filter or visiblity
- its not restricted via row owners
- the data shows accurately where i preview my app on my laptop
- interesting to observe, the big numbers, total enquiries and the bar chart is build using the same datasource from the same table - on my mobile device, big numbers show but not the bar chart

any idea why this could be?

 ![Screenshot 2024-01-02 at 17.13.51](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/5/55a85b542aa36d14e3f54ea01392761dd981dd7b.png)

---

<div class="post-metadata">

### Author: ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)
#### Post date: [January 2, 2024, 4:38pm UTC](https://community.glideapps.com/t/bar-chart-dont-show-on-iphone-but-in-preview/69179/2 "2024-01-02T16:38:48Z")

</div>

Are you doing anything weird with dates? Using any date plugins or formatting it dates in any non-conventional way?

---

<div class="post-metadata">

### Author: ![IlseB](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ilseb/32/44063_2.png) [@IlseB](https://community.glideapps.com/u/IlseB)
#### Post date: [January 2, 2024, 4:43pm UTC](https://community.glideapps.com/t/bar-chart-dont-show-on-iphone-but-in-preview/69179/3 "2024-01-02T16:43:48Z")

</div>

The only thing im doing with dates are:

1. i have rows for each month
2. i extract month number and year number
3. then i stitch them and use the template column to build a relation back to the actual table
4. i then do a count and show this on my chart.
5. i do have a date formatted column in this table but this is not used in any of the relations/templates or calcs
6. however, i am using a template column as the x-axis in all the bar charts that doesnt work…mmm

hope that makes sense?

---

<div class="post-metadata">

### Author: ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)
#### Post date: [January 2, 2024, 4:58pm UTC](https://community.glideapps.com/t/bar-chart-dont-show-on-iphone-but-in-preview/69179/4 "2024-01-02T16:58:11Z")

</div>

> [@IlseB](#):
>
> i extract month number and year number

How are you doing this? The reason I ask is because there are some known incompatibilities with date related plugins not playing well with iPhones.

A better way to extract year and month is with a math column. It’s stable and always returned expected results. Also saves having to switch them back together.

`Year(Date)*10^2 +Month(Date)`

---

<div class="post-metadata">

### Author: ![IlseB](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ilseb/32/44063_2.png) [@IlseB](https://community.glideapps.com/u/IlseB)
#### Post date: [January 2, 2024, 5:01pm UTC](https://community.glideapps.com/t/bar-chart-dont-show-on-iphone-but-in-preview/69179/5 "2024-01-02T17:01:16Z")

</div>

> [@Jeff\_Hager](#):
>
> Year(Date)\*10^2 +Month(Date)

i have the following - see screenshots

 ![Screenshot 2024-01-02 at 18.00.25](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/5/c5987fe63fd34b7ad3b7c859f2a228daf8d587d6.png)  
 ![Screenshot 2024-01-02 at 18.00.05](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/5/f592de8ce9093cb66489c95d5fd979a9e939f7ab.png)  
 ![Screenshot 2024-01-02 at 17.59.55](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/e/feb92848b2b29fdc16140eb012160ad8e0296248.png)  
 ![Screenshot 2024-01-02 at 17.59.48](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/5/d540ce28edf89f9f8c1f53e2479296b8a6823978.png)  
 ![Screenshot 2024-01-02 at 17.59.37](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/f/6f0ea72a5fb68a344fcac7859f70b7d39f68f0ec.png)

 ![Screenshot 2024-01-02 at 17.59.27](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/d/9db79188adecdacd60ae234e098b211ee13f249c.png)  
 ![Screenshot 2024-01-02 at 17.59.19](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/2/5/2587eb8d8d26f019dbfeb9020a8527c3f8fd8e9f.png)

---

<div class="post-metadata">

### Author: ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)
#### Post date: [January 2, 2024, 5:08pm UTC](https://community.glideapps.com/t/bar-chart-dont-show-on-iphone-but-in-preview/69179/6 "2024-01-02T17:08:09Z")

</div>

These look suspicious to me. You are grabbing year AND month from a text based Month column??? Two thoughts are that you are either pointing the year to the wrong column, or there is a problem with the Month column being a text column instead of a date column.

 ![Screenshot_20240102-110607](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/6/06b06fb11ad111262796e21b4882f2412b103092.jpeg)

---

<div class="post-metadata">

### Author: ![IlseB](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ilseb/32/44063_2.png) [@IlseB](https://community.glideapps.com/u/IlseB)
#### Post date: [January 2, 2024, 7:46pm UTC](https://community.glideapps.com/t/bar-chart-dont-show-on-iphone-but-in-preview/69179/7 "2024-01-02T19:46:39Z")

</div>

> [@Jeff\_Hager](#):
>
> Year(Date)\*10^2 +Month(Date)

Hi Jeff,

I have now done the following, with no luck:

- Changed the Month column to be a date format
- created a new extract math column with your formula successfully
- also used the same formula in the lookup table
- updated my relation column to match my two template columns
- the figures on the table shows correctly, also when i open the app on my macbook, the bar chart shows… but still on iphone it doesnt show  
 ![Screenshot 2024-01-02 at 20.45.20](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/f/4f76ac2891dd7b4b69313bb7f45d267689fc67b4.jpeg)  
 ![Screenshot 2024-01-02 at 20.45.05](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/f/3fa87b00822932cf03829db3401774fada369d3d.png)  
 ![Screenshot 2024-01-02 at 20.44.19](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/6/e65048a6cacc4f8faeaff6aa82eca624dad9a793.png)  
 ![Screenshot 2024-01-02 at 20.42.45](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/e/1e89c2d10470b9f84581a6c3e3fc200c2d62207f.png)

see screenshots

---

<div class="post-metadata">

### Author: ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)
#### Post date: [January 2, 2024, 8:12pm UTC](https://community.glideapps.com/t/bar-chart-dont-show-on-iphone-but-in-preview/69179/8 "2024-01-02T20:12:47Z")

</div>

Nothing is immediately jumping out to me. Have you tried in a different device, such as an Android device?

Okay, just to verify, in your earlier screenshots, your template has month before year, and now month is after year. I just want to make sure that it’s consistent on both ends of the relation. I assume you still have the same results where the builder shows the chart, but the phone does not?

Can you also share a screenshot from the other table including the ExtractMonthYear\_Status column?

Also a screenshot of the chart configuration?

Also, for debugging purposes, can you add a text component to the screen with the chart that maybe shows the template column value, just to verify that dates are formatting correctly. I’m sure it’s just a configuration issue somewhere along the line, but I’d need more info to determine that.

---

<div class="post-metadata">

### Author: ![IlseB](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ilseb/32/44063_2.png) [@IlseB](https://community.glideapps.com/u/IlseB)
#### Post date: [January 2, 2024, 8:19pm UTC](https://community.glideapps.com/t/bar-chart-dont-show-on-iphone-but-in-preview/69179/9 "2024-01-02T20:19:17Z")

</div>

> [@Jeff\_Hager](#):
>
> Okay, just to verify, in your earlier screenshots, your template has month before year, and now month is after year. I just want to make sure that it’s consistent on both ends of the relation. I assume you still have the same results where the builder shows the chart, but the phone does not?

Correct, the results on the chart builder is correct, but the phone doesnt show the chart. further to this i have realised that if i remove my filter (to filter for the specific month only), the chart actually shows on the iphone. This is the filter i currently have: new yearmonth field equals current yearmonth field based on your formulas.

---

<div class="post-metadata">

### Author: ![IlseB](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ilseb/32/44063_2.png) [@IlseB](https://community.glideapps.com/u/IlseB)
#### Post date: [January 2, 2024, 8:20pm UTC](https://community.glideapps.com/t/bar-chart-dont-show-on-iphone-but-in-preview/69179/10 "2024-01-02T20:20:21Z")

</div>

> [@Jeff\_Hager](#):
>
> Can you also share a screenshot from the other table including the ExtractMonthYear\_Status column?

 ![Screenshot 2024-01-02 at 21.19.59](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/9/a92fd4cb0f244600a19a3f7cd3733eed234c6d79.png)

---

<div class="post-metadata">

### Author: ![IlseB](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ilseb/32/44063_2.png) [@IlseB](https://community.glideapps.com/u/IlseB)
#### Post date: [January 2, 2024, 8:26pm UTC](https://community.glideapps.com/t/bar-chart-dont-show-on-iphone-but-in-preview/69179/11 "2024-01-02T20:26:14Z")

</div>

> [@Jeff\_Hager](#):
>
> Also a screenshot of the chart configuration?

Table:

 ![Screenshot 2024-01-02 at 21.23.03](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/b/8b7b248a7f704c8d70903012e1efda96fb50e28f.jpeg)  
This is the filter that stops the chart from showing on iphone…  
 ![Screenshot 2024-01-02 at 21.21.20](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/1/01f811666d0ad8cd84eb2e73a642b45c87fc1fc8.png)  
Without the filter it shows on iphone, but it shows a sum of all values …that is not correct as i need to filter the shart for this month only:  
 ![Screenshot 2024-01-02 at 21.21.00](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/f/ff0707f197a034f3f7faa61b859a2392963ab1ee.png)  
 ![Screenshot 2024-01-02 at 21.20.51](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/f/afceaf7c49f7e4e0b7d78e153979bae4a448e0b4.png)  
Here is the other tables field that is part of the relation:  
 ![Screenshot 2024-01-02 at 21.19.59](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/9/a92fd4cb0f244600a19a3f7cd3733eed234c6d79.png)

---

<div class="post-metadata">

### Author: ![IlseB](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ilseb/32/44063_2.png) [@IlseB](https://community.glideapps.com/u/IlseB)
#### Post date: [January 2, 2024, 8:29pm UTC](https://community.glideapps.com/t/bar-chart-dont-show-on-iphone-but-in-preview/69179/12 "2024-01-02T20:29:22Z")

</div>

> [@Jeff\_Hager](#):
>
> Also, for debugging purposes, can you add a text component to the screen with the chart that maybe shows the template column value, just to verify that dates are formatting correctly. I’m sure it’s just a configuration issue somewhere along the line, but I’d need more info to determine that.

 ![Screenshot 2024-01-02 at 21.28.41](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/6/a6777c9bd257f901c0d4c791419d87efdd228aab.jpeg)

---

<div class="post-metadata">

### Author: ![IlseB](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ilseb/32/44063_2.png) [@IlseB](https://community.glideapps.com/u/IlseB)
#### Post date: [January 2, 2024, 8:42pm UTC](https://community.glideapps.com/t/bar-chart-dont-show-on-iphone-but-in-preview/69179/13 "2024-01-02T20:42:33Z")

</div>

![Screenshot 2024-01-02 at 21.42.11](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/f/6fa3b5d58708056aa1cc03636b51a864dd43fbf5.jpeg)

---

<div class="post-metadata">

### Author: ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)
#### Post date: [January 2, 2024, 9:14pm UTC](https://community.glideapps.com/t/bar-chart-dont-show-on-iphone-but-in-preview/69179/14 "2024-01-02T21:14:16Z")

</div>

I’m really just throwing out random ideas, so bare with me. Everything looks to be set up correctly. Obviously 202401 should match 202401…but I also noticed that you have ‘Respect Timezones’ enabled on your Month date column. Assuming that all dates have a time of midnight, I’m wondering if it’s converting to a different timezone, and thus a different day on the iPhone, so you end up with mismatched new and newcurrent values. For this specific use case, there should be no reason to have ‘Respect Timezones’ enabled since I assume it’s a static date that should be the same for everyone. I would think if this is the case, you would see it reflected on your phone in the Fields component.

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [January 2, 2024, 11:55pm UTC](https://community.glideapps.com/t/bar-chart-dont-show-on-iphone-but-in-preview/69179/15 "2024-01-02T23:55:41Z")

</div>

Please try opening the builder in Safari on your Mac, test all the related columns to see if they all return correct values. Nothing is immediately jumping out to me, but maybe adding more relevant columns to the fields component and test them between your Mac and your iPhone to see if there’s a difference.

---

<div class="post-metadata">

### Author: ![IlseB](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ilseb/32/44063_2.png) [@IlseB](https://community.glideapps.com/u/IlseB)
#### Post date: [January 3, 2024, 5:17am UTC](https://community.glideapps.com/t/bar-chart-dont-show-on-iphone-but-in-preview/69179/16 "2024-01-03T05:17:00Z")

</div>

Thanks alot both of you, @ThinhDinh and @Jeff_Hager , after taking a break I realised even though I added the Date column also to the Fields component, it didnt show due to the format. on the surface it looked like an acceptable format, but after retyping all the months in the table the charts appeared 🙂

---

<div class="post-metadata">

### Author: ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)
#### Post date: [January 10, 2024, 5:17am UTC](https://community.glideapps.com/t/bar-chart-dont-show-on-iphone-but-in-preview/69179/17 "2024-01-10T05:17:24Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
