# pointLabel where default is graph but can override with table input

**URL:** <https://cl.desmos.com/t/pointlabel-where-default-is-graph-but-can-override-with-table-input/4165>\
**Category:** Questions\
**Created:** [March 19, 2022, 5:29pm UTC](https://cl.desmos.com/t/pointlabel-where-default-is-graph-but-can-override-with-table-input/4165 "2022-03-19T17:29:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmin](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/jmin/32/3468_2.png) [@jmin](https://cl.desmos.com/u/jmin)\
**Post date:** [March 19, 2022, 5:29pm UTC](https://cl.desmos.com/t/pointlabel-where-default-is-graph-but-can-override-with-table-input/4165/1 "2022-03-19T17:29:31Z")

</div>

Hello,  
So I have created a unit circle with points on it where students have to label the points through a table. I labeled the points on the graph 1-16 and the table has row numbers 1-16. In the graph, I labeled each point 1-16 but with pointLabel linked to the table, the numbers 1-16 don’t show up anymore. Is there a way to have the graph labels 1-16 show up but then be overridden by pointLabel? I hope that makes sense. I’m still a newbie to CL. Here’s my activity:

> **[Unit Circle • Activity Builder by Desmos](https://teacher.desmos.com/activitybuilder/custom/622b9f01c49e6d48409b71e3)**
>
> Self-correcting unit circle
> \*beware of latex

TIA!

---

<div class="post-metadata">

**Author:** ![pirsquared](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@pirsquared](https://cl.desmos.com/u/pirsquared)\
**Post date:** [March 19, 2022, 6:42pm UTC](https://cl.desmos.com/t/pointlabel-where-default-is-graph-but-can-override-with-table-input/4165/2 "2022-03-19T18:42:10Z")

</div>

The CL will always override whatever’s set up in the graph, so you’ll need to use a `when` statement to achieve this. You’ve kind of introduced a when/otherwise anyway, so you’d just need something like:

```auto
pointLabel("A_3"): when isBlank(table.cellContent(1,4)) "1" otherwise table.cellContent(1,4)

```

for each of the points.

Quick tips - you can use “this” instead of “table” when you’re in the CL inside the table - and even better, you can define `t=table` and then just use `t.cellContent` to save a bit of typing 🙂

---

<div class="post-metadata">

**Author:** ![jmin](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/jmin/32/3468_2.png) [@jmin](https://cl.desmos.com/u/jmin)\
**Post date:** [March 21, 2022, 3:59pm UTC](https://cl.desmos.com/t/pointlabel-where-default-is-graph-but-can-override-with-table-input/4165/3 "2022-03-21T15:59:48Z")

</div>

Thank you @pirsquared !!! This code also helped me with my other post where you also helped me. The summary table wasn’t storing the previous attempts because of the otherwise “” so I added in the history code and it worked!
