# Use additional assigned coordinate in the xarray dataset in hover\_cols

**URL:** <https://discourse.holoviz.org/t/use-additional-assigned-coordinate-in-the-xarray-dataset-in-hover-cols/7212>\
**Category:** hvPlot\
**Tags:** holoviews\
**Created:** [May 6, 2024, 6:16pm UTC](https://discourse.holoviz.org/t/use-additional-assigned-coordinate-in-the-xarray-dataset-in-hover-cols/7212 "2024-05-06T18:16:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![derrelldv](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/derrelldv/32/6562_2.png) [@derrelldv](https://discourse.holoviz.org/u/derrelldv)\
**Post date:** [May 6, 2024, 6:16pm UTC](https://discourse.holoviz.org/t/use-additional-assigned-coordinate-in-the-xarray-dataset-in-hover-cols/7212/1 "2024-05-06T18:16:20Z")

</div>

Hello HoloViz community, I am encountering an issue when trying to include custom coordinates (`xind` and `yind` ) in tooltips while using `hvplot.image()` . Here is a simplified version of my code:

```auto
import hvplot.xarray

sample_data = np.random.rand(500, 128)
y_coord = np.linspace(0, 15, 500)
x_coord = np.linspace(0, 1, 128)

data = xr.DataArray(data=sample_data.T, coords=[("y", x_coord), ("x", y_coord)])

xindex = np.arange(len(x_coord))
yindex = np.arange(len(y_coord))
data = data.assign_coords(xind=("x", yindex))
data = data.assign_coords(yind=("y", xindex))

plot = data.hvplot.image(
z="value",
x="x",
y="y",
cmap="gray",
width=1200,
height=300,
hover=True,
xlabel="x (mm)",
ylabel="y (m)",
framewise=True,
rasterize=True,
)

```

When attempting to include `xind` and `yind` coordinates in tooltips using `hover_cols=["xind","yind"]` , I encounter the following error:

```auto
ValueError: 'y' is not in list

```

Is there any way, I could use xind and yind in my tooltips?

---

<div class="post-metadata">

**Author:** ![ahuang11](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/ahuang11/32/4947_2.png) [@ahuang11](https://discourse.holoviz.org/u/ahuang11)\
**Post date:** [May 7, 2024, 2:26am UTC](https://discourse.holoviz.org/t/use-additional-assigned-coordinate-in-the-xarray-dataset-in-hover-cols/7212/2 "2024-05-07T02:26:01Z")

</div>

Looks like a bug; maybe you can submit an issue in HoloViews?
