# Save graph data into a variable and use it in a different slide

**URL:** <https://cl.desmos.com/t/save-graph-data-into-a-variable-and-use-it-in-a-different-slide/1898>\
**Category:** Questions\
**Created:** [November 9, 2020, 1:32am UTC](https://cl.desmos.com/t/save-graph-data-into-a-variable-and-use-it-in-a-different-slide/1898 "2020-11-09T01:32:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Feras\_alna](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/feras_alna/32/1519_2.png) [@Feras\_alna](https://cl.desmos.com/u/Feras_alna)\
**Post date:** [November 9, 2020, 1:32am UTC](https://cl.desmos.com/t/save-graph-data-into-a-variable-and-use-it-in-a-different-slide/1898/1 "2020-11-09T01:32:42Z")

</div>

Hi,

I have a slide where I ask students to input data on a graph and I want to use that data on a graph on another slide. How can I save the graph data that the student entered and reuse it later? If this is done in a script I would appreciate a code example.

Thank you,  
Feras

---

<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:** [November 9, 2020, 1:50am UTC](https://cl.desmos.com/t/save-graph-data-into-a-variable-and-use-it-in-a-different-slide/1898/2 "2020-11-09T01:50:58Z")

</div>

It depends on how the data is being input. You can access any variable created in a component’s CL, using `componentName.script.variable`.

Content of an input can be accessed using `inputName.content` or `inputName.latex`.

Tables using `tableName.cellContent(row, column)` or `table.cellNumericValue(row,column)`.

Graphs have `number`, `numberList`…
