# view not updating

**URL:** <https://talk.observablehq.com/t/view-not-updating/7109>\
**Category:** Help\
**Created:** [October 5, 2022, 2:37pm UTC](https://talk.observablehq.com/t/view-not-updating/7109 "2022-10-05T14:37:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![stuwilmur](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/stuwilmur/32/3074_2.png) [@stuwilmur](https://talk.observablehq.com/u/stuwilmur)\
**Post date:** [October 5, 2022, 2:37pm UTC](https://talk.observablehq.com/t/view-not-updating/7109/1 "2022-10-05T14:37:36Z")

</div>

Possibly my third stupid question this week: I’m attempting to create a view using a chart (see [Countries Event Listener / stuwilmur / Observable](https://observablehq.com/@stuwilmur/countries-selector-input)), but the cell does not update as intended for some reason. It’s simple so far: on mouse click, the value is incremented (confirmed), but this is never reflected in the view of chart in the notebook.

What am I missing here?

Thank you!

---

<div class="post-metadata">

**Author:** ![Fil](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/fil/32/207_2.png) [@Fil](https://talk.observablehq.com/u/Fil)\
**Post date:** [October 5, 2022, 2:50pm UTC](https://talk.observablehq.com/t/view-not-updating/7109/2 "2022-10-05T14:50:54Z")

</div>

there are no stupid questions 🙂  
Once you have updated the value, you need to send an event to trigger the reactivity:

```diff
    ++context.canvas.value;
+ context.canvas.dispatchEvent(new CustomEvent("input"));
}

```

---

<div class="post-metadata">

**Author:** ![stuwilmur](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/stuwilmur/32/3074_2.png) [@stuwilmur](https://talk.observablehq.com/u/stuwilmur)\
**Post date:** [October 5, 2022, 3:09pm UTC](https://talk.observablehq.com/t/view-not-updating/7109/3 "2022-10-05T15:09:13Z")

</div>

Amazing thank you @Fil! Some more magic for me to learn.

---

<div class="post-metadata">

**Author:** ![Fil](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/fil/32/207_2.png) [@Fil](https://talk.observablehq.com/u/Fil)\
**Post date:** [October 5, 2022, 3:38pm UTC](https://talk.observablehq.com/t/view-not-updating/7109/4 "2022-10-05T15:38:09Z")

</div>

You’ll find some documentation here: [Introduction to Views / Observable / Observable](https://observablehq.com/@observablehq/views)

---

<div class="post-metadata">

**Author:** ![stuwilmur](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/stuwilmur/32/3074_2.png) [@stuwilmur](https://talk.observablehq.com/u/stuwilmur)\
**Post date:** [October 5, 2022, 3:44pm UTC](https://talk.observablehq.com/t/view-not-updating/7109/5 "2022-10-05T15:44:54Z")

</div>

Thank you; somehow I had read this but missed the vital part.

I got my notebook doing what I wanted now!
