# Populate a table embedded in a graph?

**URL:** <https://cl.desmos.com/t/populate-a-table-embedded-in-a-graph/7418>\
**Category:** Questions\
**Created:** [October 17, 2024, 3:00pm UTC](https://cl.desmos.com/t/populate-a-table-embedded-in-a-graph/7418 "2024-10-17T15:00:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brian\_Hamm](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/brian_hamm/32/6187_2.png) [@Brian\_Hamm](https://cl.desmos.com/u/Brian_Hamm)\
**Post date:** [October 17, 2024, 3:00pm UTC](https://cl.desmos.com/t/populate-a-table-embedded-in-a-graph/7418/1 "2024-10-17T15:00:19Z")

</div>

I’m wondering if it’s possible to take the graph layer points that I’m porting over from slide 3 to slide 4 and have them auto-populate a table within the graphing calculator section. OR if there’s an easier way to set up a regression equation and r-value from the scatterplot.  
Thanks!!

> **[Data Detective: Cracking the Code with Two-Variable Data • Activity Builder...](https://teacher.desmos.com/activitybuilder/custom/67054dff02caf0866673ebf1)**
>
> In this interactive learning game, students will become data detectives tasked with solving a mystery using statistical analysis. The goal is to apply two-variable regression to understand relationships between variables and make predictions based...

---

<div class="post-metadata">

**Author:** ![Sonny\_Lau](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/sonny_lau/32/3774_2.png) [@Sonny\_Lau](https://cl.desmos.com/u/Sonny_Lau)\
**Post date:** [October 18, 2024, 10:06pm UTC](https://cl.desmos.com/t/populate-a-table-embedded-in-a-graph/7418/2 "2024-10-18T22:06:05Z")

</div>

You would first need to declare and empty list for each column like shown below:

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/desmos/original/2X/c/c8e6e64cde94b10f6fa78fe96a9429466f416f38.png)

Then you would need to use CL in Graph4 like

> numberList(`X`): Table3.columnNumericValues(1)  
> numberList(`Y`): Table3.columnNumericValues(2)

This is essentially saying  
“Replace the list values in a list named X with the values from column one from Table3.”  
“Replace the list values in a list named Y with the values from column two from Table3.”

---

<div class="post-metadata">

**Author:** ![Daniel\_Grubbs](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_grubbs/32/719_2.png) [@Daniel\_Grubbs](https://cl.desmos.com/u/Daniel_Grubbs)\
**Post date:** [October 20, 2024, 4:21pm UTC](https://cl.desmos.com/t/populate-a-table-embedded-in-a-graph/7418/3 "2024-10-20T16:21:13Z")

</div>

Not that it hurts, but you don’t _have_ to use an empty list as the CL will overwrite whatever is there (as you stated). The CL does _not_ run for thumbnail previews, so it will show whatever state the graph is in editing. Convenient if you want to show a default image of some sort.
