# How to collect each student's input and generate the data into a graph?

**URL:** <https://cl.desmos.com/t/how-to-collect-each-students-input-and-generate-the-data-into-a-graph/1776>\
**Category:** Questions\
**Tags:** aggregate\
**Created:** [October 25, 2020, 12:25am UTC](https://cl.desmos.com/t/how-to-collect-each-students-input-and-generate-the-data-into-a-graph/1776 "2020-10-25T00:25:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![HarryLovesMath](https://avatars.discourse-cdn.com/v4/letter/h/e5b9ba/32.png) [@HarryLovesMath](https://cl.desmos.com/u/HarryLovesMath)\
**Post date:** [October 25, 2020, 12:25am UTC](https://cl.desmos.com/t/how-to-collect-each-students-input-and-generate-the-data-into-a-graph/1776/1 "2020-10-25T00:25:22Z")

</div>

Hi all,

Is it possible to collect each student’s input data to generate a graph?

For example, generate a graph on slide 2, using the data from this Desmos activity slide 1. [10 26 Starting number & Rate of Change - Activity 2 • Activity by Harry Huang](https://teacher.desmos.com/activitybuilder/custom/5f94c21a2001e00b3e69dc33)

If it works, it may also be possible to plot different lines too?

Does it relate to this command?  
numberList(“N”): aggregate(input.numericValue)

Thank you!

---

<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 25, 2020, 3:00pm UTC](https://cl.desmos.com/t/how-to-collect-each-students-input-and-generate-the-data-into-a-graph/1776/2 "2020-10-25T15:00:22Z")

</div>

1. You can aggregate separate numeric values. So, to graph values from slide 1, in your slide 2 graph:

```auto
numberList(`X`): aggregate(table1Name.cellNumericValue(1,1))
numberList(`Y`): aggregate(table1Name.cellNumericValue(1,2))

```

In your graph, to graph all the points add in `(X,Y)`.

1. You can plot different lines as well as long as you’re aggregating numeric data (e.g. the slope and y-intercept) and using those to create your equation (i.e. `y=Mx+B).

You could also create a best fit line from your aggregated data from #1 using `Y~mX+b`.

---

<div class="post-metadata">

**Author:** ![HarryLovesMath](https://avatars.discourse-cdn.com/v4/letter/h/e5b9ba/32.png) [@HarryLovesMath](https://cl.desmos.com/u/HarryLovesMath)\
**Post date:** [October 25, 2020, 7:03pm UTC](https://cl.desmos.com/t/how-to-collect-each-students-input-and-generate-the-data-into-a-graph/1776/3 "2020-10-25T19:03:41Z")

</div>

Thank you so much, Daniel, I am excited to try it out ~~~
