# Table of Values appear on graph with button click?

**URL:** <https://cl.desmos.com/t/table-of-values-appear-on-graph-with-button-click/2249>\
**Category:** Questions\
**Created:** [December 20, 2020, 6:56pm UTC](https://cl.desmos.com/t/table-of-values-appear-on-graph-with-button-click/2249 "2020-12-20T18:56:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paula](https://avatars.discourse-cdn.com/v4/letter/p/8e8cbc/32.png) [@Paula](https://cl.desmos.com/u/Paula)\
**Post date:** [December 20, 2020, 6:56pm UTC](https://cl.desmos.com/t/table-of-values-appear-on-graph-with-button-click/2249/1 "2020-12-20T18:56:05Z")

</div>

I can make a line appear when the “check by graph” button is clicked by having:  
in the graph:  
y=x+3 {a=1} with a slider for a set at a=1  
AND  
this computation layer:  
number(“a”): when button.pressCount \> 0 1 otherwise 0

This works great!

I would love to have a bunch of points also appear with my line, so I created a table of values. I don’t see a way to enable the {a=1} doohickey in the table. Is there another way to get my points to appear on the same button click?

Thank you!!

---

<div class="post-metadata">

**Author:** ![sergeballif](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/sergeballif/32/231_2.png) [@sergeballif](https://cl.desmos.com/u/sergeballif)\
**Post date:** [December 20, 2020, 11:06pm UTC](https://cl.desmos.com/t/table-of-values-appear-on-graph-with-button-click/2249/2 "2020-12-20T23:06:40Z")

</div>

You could add that restriction to each y-coordinate of your table. Easier, would be to not plot the table points `(x1,y1)` and instead add a new cell with the point `(x1,y1{a=1})` that will get all its coordinates from your table.

---

<div class="post-metadata">

**Author:** ![Paula](https://avatars.discourse-cdn.com/v4/letter/p/8e8cbc/32.png) [@Paula](https://cl.desmos.com/u/Paula)\
**Post date:** [December 21, 2020, 12:57pm UTC](https://cl.desmos.com/t/table-of-values-appear-on-graph-with-button-click/2249/3 "2020-12-21T12:57:56Z")

</div>

_ **Beautiful!** _ Thank you so much for the quick reply!!
