# Why there are so many errors and my plot does not show ?

**URL:** <https://talk.observablehq.com/t/why-there-are-so-many-errors-and-my-plot-does-not-show/6854>\
**Category:** Help\
**Created:** [July 26, 2022, 9:46am UTC](https://talk.observablehq.com/t/why-there-are-so-many-errors-and-my-plot-does-not-show/6854 "2022-07-26T09:46:45Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![scarlettlee](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/scarlettlee/32/6774_2.png) [@scarlettlee](https://talk.observablehq.com/u/scarlettlee)\
**Post date:** [July 26, 2022, 9:46am UTC](https://talk.observablehq.com/t/why-there-are-so-many-errors-and-my-plot-does-not-show/6854/1 "2022-07-26T09:46:45Z")

</div>

Here is the link:  
[observablehq.com/d/14657bd91cff2b37](http://observablehq.com/d/14657bd91cff2b37)

Thank you very much

---

<div class="post-metadata">

**Author:** ![mcmcclur](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mcmcclur/32/2364_2.png) [@mcmcclur](https://talk.observablehq.com/u/mcmcclur)\
**Post date:** [July 26, 2022, 10:05am UTC](https://talk.observablehq.com/t/why-there-are-so-many-errors-and-my-plot-does-not-show/6854/2 "2022-07-26T10:05:07Z")

</div>

You’ve published your “Observable Water Quality” notebook (which is great great for discussion like this) but I guess you’re trying to import functionality from an unpublished (or non-existen) notebook in this line:

```
import {ScatterplotMatrix} from "135522e2b5066d0e"

```

A published notebook can’t import from unpublished notebooks.

---

<div class="post-metadata">

**Author:** ![scarlettlee](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/scarlettlee/32/6774_2.png) [@scarlettlee](https://talk.observablehq.com/u/scarlettlee)\
**Post date:** [July 26, 2022, 11:54am UTC](https://talk.observablehq.com/t/why-there-are-so-many-errors-and-my-plot-does-not-show/6854/3 "2022-07-26T11:54:51Z")

</div>

Thank you mcmcclur. Ok, I corrected the problem this time. But why are some plots still not show?

> **[Observable Water Quality](https://observablehq.com/d/14657bd91cff2b37)**
>
> Observable Plot is a free, open-source JavaScript library to help you quickly visualize tabular data. It has a concise and (hopefully) memorable API to foster fluency — and plenty of examples to learn from and copy-paste. In the spirit of show...

---

<div class="post-metadata">

**Author:** ![scarlettlee](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/scarlettlee/32/6774_2.png) [@scarlettlee](https://talk.observablehq.com/u/scarlettlee)\
**Post date:** [July 26, 2022, 1:38pm UTC](https://talk.observablehq.com/t/why-there-are-so-many-errors-and-my-plot-does-not-show/6854/4 "2022-07-26T13:38:01Z")

</div>

Can anyone help?

---

<div class="post-metadata">

**Author:** ![mcmcclur](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/mcmcclur/32/2364_2.png) [@mcmcclur](https://talk.observablehq.com/u/mcmcclur)\
**Post date:** [July 26, 2022, 1:56pm UTC](https://talk.observablehq.com/t/why-there-are-so-many-errors-and-my-plot-does-not-show/6854/5 "2022-07-26T13:56:02Z")

</div>

Well, as far as I can tell, no elements of your `data` have a `basin` key. Thus, I would not expect the following to work, for example:

```
Plot.rectY(data, Plot.binX({y: "count"}, {x: "pH", fill: "basin"})).plot()

```

If you simply remove the `fill: "basin"` to get

```
Plot.rectY(data, Plot.binX({y: "count"}, {x: "pH"})).plot()

```

then you do get a histogram. I’m not sure if that’s exactly what you’re looking for, though.

Generally, it’s easier to answer a question if it’s more focused. Thus, it would be great to share a smaller notebook with a minimal amount of code and a description of what output you expect.

---

<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 26, 2022, 4:35pm UTC](https://talk.observablehq.com/t/why-there-are-so-many-errors-and-my-plot-does-not-show/6854/6 "2022-07-26T16:35:10Z")

</div>

Looks like you need `Basin` with an uppercase B instead of lowercase.

 ![untitled (49)](https://canada1.discourse-cdn.com/flex030/uploads/observablehq/original/2X/c/c586413a87f9825341e8cafaf6c06c310d3a6d89.png)

```nohighlight
Plot.rectY(data, Plot.binX({y: "count"}, {x: "pH", fill: "Basin"})).plot()

```

---

<div class="post-metadata">

**Author:** ![scarlettlee](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/scarlettlee/32/6774_2.png) [@scarlettlee](https://talk.observablehq.com/u/scarlettlee)\
**Post date:** [July 26, 2022, 8:22pm UTC](https://talk.observablehq.com/t/why-there-are-so-many-errors-and-my-plot-does-not-show/6854/7 "2022-07-26T20:22:26Z")

</div>

Thank you very much, Mike.

---

<div class="post-metadata">

**Author:** ![scarlettlee](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/scarlettlee/32/6774_2.png) [@scarlettlee](https://talk.observablehq.com/u/scarlettlee)\
**Post date:** [July 26, 2022, 8:23pm UTC](https://talk.observablehq.com/t/why-there-are-so-many-errors-and-my-plot-does-not-show/6854/8 "2022-07-26T20:23:14Z")

</div>

Hi, mcmcclur. Thank you very much for your reply. I have solved it.
