# Vega-lite: Able to set href on text mark?

**URL:** <https://discuss.elastic.co/t/vega-lite-able-to-set-href-on-text-mark/280345>\
**Category:** Kibana\
**Tags:** vega\
**Created:** [August 3, 2021, 3:46pm UTC](https://discuss.elastic.co/t/vega-lite-able-to-set-href-on-text-mark/280345 "2021-08-03T15:46:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![todd-symmetry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/todd-symmetry/32/92488_2.png) [@todd-symmetry](https://discuss.elastic.co/u/todd-symmetry)\
**Post date:** [August 3, 2021, 3:46pm UTC](https://discuss.elastic.co/t/vega-lite-able-to-set-href-on-text-mark/280345/1 "2021-08-03T15:46:24Z")

</div>

I'm using vega-lite in a self-hosted Kibana to create a basic visualization -- just a text mark that shows a number plus the title. The whole point of this is to make the text link to another dashboard. I'm having no success making the `text` mark link working, however.

According to the Vega-lite docs, it should be a matter of setting the `href` property on the text mark definition:

```auto
  config: {
    kibana: {
      renderer: svg
    }
  }
// later in the config json:
  layer: [
    {
      mark: {
        type: text
        fontSize: 64
        fontWeight: bold
        fill: green
        href: /some/path

```

This seems to do something because the pointer changes into the hand as I hover over the text mark, but clicking does nothing. No console messages, nothing. I've tried different variations on this, using the `encoding` block, using absolute vs relative paths, but the link never happens. There is a click handler getting applied to the top-level svg when I inspect it. Adding the visualization to a dashboard has the same result, too.

All this leads me to wonder: Is it possible to set the `href` property in Kibana in a vega-lite viz? Does this work? Thanks in advance for any help.

---

<div class="post-metadata">

**Author:** ![todd-symmetry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/todd-symmetry/32/92488_2.png) [@todd-symmetry](https://discuss.elastic.co/u/todd-symmetry)\
**Post date:** [August 3, 2021, 10:57pm UTC](https://discuss.elastic.co/t/vega-lite-able-to-set-href-on-text-mark/280345/2 "2021-08-03T22:57:37Z")

</div>

Seems I posted too soon. I thought we had restarted our kibana instance after adding `vega.enableExternalUrls: true` to the kibana.yml, but I was mistaken. After verifying that change was made and the server restarted, the `href` property on a text mark works as expected.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 31, 2021, 10:58pm UTC](https://discuss.elastic.co/t/vega-lite-able-to-set-href-on-text-mark/280345/3 "2021-08-31T22:58:12Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
