# Chart customisation (X-Y Values)

**URL:** https://community.glideapps.com/t/chart-customisation-x-y-values/73602
**Category:** Ask for Help
**Created:** [May 23, 2024, 3:35pm UTC](https://community.glideapps.com/t/chart-customisation-x-y-values/73602 "2024-05-23T15:35:45Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![AxelG](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@AxelG](https://community.glideapps.com/u/AxelG)
#### Post date: [May 23, 2024, 3:35pm UTC](https://community.glideapps.com/t/chart-customisation-x-y-values/73602/1 "2024-05-23T15:35:45Z")

</div>

I have a table containing animal names, Date Weigth in , Weigth, …

I incclude the Chart component (line) were I would now like a chart based on the above table.

It should show (or be abe to select) the animal name, and then produce a line chart from oldest to latest date (and all in between) with every weight on the weighing date.

Don’t seem able to produce that .  
On the X Axis I added the Name , This then shows the names I want and on the graph I believe there is a count of the nbr of times it appears.

Basically My X axis should be the date, My Y axis should be the Weight , and that for the name.

(if possible I would like to link thru to this from anotherview I have, so the name can be taken from there)  
|Name | Date | Weight | Column 4|

|— | — | — | —|  
|Bambi | 1/1/2024 | 15 | |  
|Charlotte | 4/3/2024 | 5 | |  
|Charlotte | 7/5/2024 | 8 | |  
|Herman | 4/6/2024 | 12 | |  
|Bambi | 4/6/2024 | 14 | |  
|etc . … | | | |

Thanks in advance

---

<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: [May 24, 2024, 12:33am UTC](https://community.glideapps.com/t/chart-customisation-x-y-values/73602/2 "2024-05-24T00:33:39Z")

</div>

If you have a table for those animals, then you can create a multiple relation to get all related weight records based on their name (but I recommend you to use a rowID to relate instead, it’s much more reliable).

Then, use that relation to show a chart in the details view of each animal. I believe if you set the axis and values up correctly, you would get what you need.

If it doesn’t work, please show us some screenshots.

---

<div class="post-metadata">

### Author: ![AxelG](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@AxelG](https://community.glideapps.com/u/AxelG)
#### Post date: [May 24, 2024, 10:04am UTC](https://community.glideapps.com/t/chart-customisation-x-y-values/73602/3 "2024-05-24T10:04:11Z")

</div>

I believe I already have those relatiosn made.  
The Table VISSEN is the list with all the known animals.  
The Table VANGSTEN shows which date and what weights the were measured.  
I joined an screenshot of an Excel generated graph which is more or less what I would like to have.  
It would be top if I can use the GROEICURVE “Button” to open the GROEICURVE page (which its does) , showing the name were you started from (it does not)

 ![Groeicurves](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/0/30f3cdf08e3e59f25ac26e783670eaf85f5e54dc.png)  
 ![Vissen Rel To Vangsten](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/a/5ad10c05f20189d10c8e07a04d4339b108d64320.png)  
 ![Vissen](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/8/88c97d18b00eca4811656dd1c3b9b22403ac2e48.png)  
 ![Vangsten Rel to Vis](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/2/d/2d287ff114c112d01747dd721bfd5a382752203f.png)  
 ![Vangsten](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/a/3a1bd56679f735b4db0f0d8f18392c0e24736039.png)  
.  
Attached are some screenshoots of tables and settings.Hope this is more explanatory.  
 ![Excel Samples as wanted.](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/d/ad39f94794f5b13bb6c90c6d3673ecae38051a8c.png)  
 ![Groeicurves Tab2](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/e/8eb7754720c19448324231d3e6873c75bf714f22.png)  
 ![Groeicurves Tab](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/f/7f9a3cf32be5049c2ea3fc1c3573a2775f3deffe.png)  
 ![Groeicurves2](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/9/89e48737db2282a9da0641bfdb30b6011b262ffe.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: [May 24, 2024, 12:17pm UTC](https://community.glideapps.com/t/chart-customisation-x-y-values/73602/4 "2024-05-24T12:17:21Z")

</div>

I think your GROEICURVE Button needs a Show New Screen → This Item action so you can have a new screen but stay connected to the same row. You are going to a tab, which completely blows away any connection to the current row you were on.

Shouldn’t the chart be sourced from a relation? I see you are sourcing it directly from a table.

---

<div class="post-metadata">

### Author: ![AxelG](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@AxelG](https://community.glideapps.com/u/AxelG)
#### Post date: [May 24, 2024, 12:56pm UTC](https://community.glideapps.com/t/chart-customisation-x-y-values/73602/5 "2024-05-24T12:56:05Z")

</div>

Wow, that is indeed already a great improvement"show new screen" tip.  
I added a new Button component to do this and  
Graph is now only showing the selected name 😀  
But still now how I want it

 ![Go Date](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/3/53579c7d57fcd27467c839ebd16768629b6f3298.png)  
 ![GO Button](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/d/edf6e009894ff26281d6ec62844f13ca2f478ceb.png)  
 ![Values](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/0/f0d714826e7262525315abefc2c37d654da5d6cd.png)  
 ![GO Weight](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/3/131c6f7f0dc27ee20cdf0414af29d5875a849e23.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: [May 24, 2024, 1:09pm UTC](https://community.glideapps.com/t/chart-customisation-x-y-values/73602/6 "2024-05-24T13:09:38Z")

</div>

You have the x-axis set, which I would assume would be the date, but you have not added an item to the chart for the weight.

---

<div class="post-metadata">

### Author: ![AxelG](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@AxelG](https://community.glideapps.com/u/AxelG)
#### Post date: [May 24, 2024, 2:14pm UTC](https://community.glideapps.com/t/chart-customisation-x-y-values/73602/7 "2024-05-24T14:14:57Z")

</div>

You are the best . Works now  
Thanks

---

<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: [May 31, 2024, 2:15pm UTC](https://community.glideapps.com/t/chart-customisation-x-y-values/73602/8 "2024-05-31T14:15:23Z")

</div>

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