# Plot.text is not showing up

**URL:** <https://talk.observablehq.com/t/plot-text-is-not-showing-up/6758>\
**Category:** Help\
**Created:** [July 1, 2022, 4:41pm UTC](https://talk.observablehq.com/t/plot-text-is-not-showing-up/6758 "2022-07-01T16:41:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kadale](https://avatars.discourse-cdn.com/v4/letter/k/8c91f0/32.png) [@kadale](https://talk.observablehq.com/u/kadale)\
**Post date:** [July 1, 2022, 4:41pm UTC](https://talk.observablehq.com/t/plot-text-is-not-showing-up/6758/1 "2022-07-01T16:41:49Z")

</div>

Previously, I had this notebook which would display flag emoji on top of each person w.r.t country.  
Recently it is not rendering it anymore.

- What is going wrong here?
- How do I switch Observable/plot version on my notebook? I’m sure it worked in Plot v0.4.3.

> **[Vacation Gantt w/ Holidays - no grouping](https://observablehq.com/d/b5c399e5451de11e)**

It used to look something like this -  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/observablehq/original/2X/0/091e8d2ed9ea0b93e58090ce4117961cd094f25b.jpeg)

---

<div class="post-metadata">

**Author:** ![Cobus](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/cobus/32/9670_2.png) [@Cobus](https://talk.observablehq.com/u/Cobus)\
**Post date:** [July 1, 2022, 5:12pm UTC](https://talk.observablehq.com/t/plot-text-is-not-showing-up/6758/2 "2022-07-01T17:12:16Z")

</div>

Hmmm, I think if you change change  
`Plot.textX(holidaysPerPerson, {`  
to  
`Plot.text(holidaysPerPerson, {`  
it should work…

---

<div class="post-metadata">

**Author:** ![mbostock](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mbostock/32/9_2.png) [@mbostock](https://talk.observablehq.com/u/mbostock)\
**Post date:** [July 3, 2022, 5:29pm UTC](https://talk.observablehq.com/t/plot-text-is-not-showing-up/6758/3 "2022-07-03T17:29:11Z")

</div>

You should be using Plot.textY rather than Plot.textX. Here is a suggestion you can merge:

[https://observablehq.com/compare/b5c399e5451de11e...71570b94c30c2205](https://observablehq.com/compare/b5c399e5451de11e...71570b94c30c2205)

With Plot.textX, the **interval** option affects the **y** channel which is here nominal (the _name_ column). As a result all of your **y** values are undefined and no text marks are being displayed. Presumably you intend the temporal d3.utcDay interval to apply to the temporal **x** channel instead; that will happen if you switch to Plot.textY.

(If you use Plot.text, the **interval** option will be ignored, which is also fine in this case because your dates are already at UTC midnight, but it’s a bit misleading since the option is ignored. Prior to Plot 0.5.0, the text mark did not support the **interval** option, which is why it worked previously.)

---

<div class="post-metadata">

**Author:** ![mootari](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mootari/32/581_2.png) [@mootari](https://talk.observablehq.com/u/mootari)\
**Post date:** [July 4, 2022, 9:52am UTC](https://talk.observablehq.com/t/plot-text-is-not-showing-up/6758/4 "2022-07-04T09:52:59Z")

</div>

As an aside, be careful about using flag emojis as [Windows does not show them](https://talk.observablehq.com/t/inputs-table-county-code-to-country-icon/5708/13) by default.
