# Advanced legend doesn't display properly or displays \[Object Object\]

**URL:** <https://community.wandb.ai/t/advanced-legend-doesnt-display-properly-or-displays-object-object/3638>\
**Category:** W&B Help\
**Created:** [January 4, 2023, 4:20pm UTC](https://community.wandb.ai/t/advanced-legend-doesnt-display-properly-or-displays-object-object/3638 "2023-01-04T16:20:20Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![wjaskowski](https://avatars.discourse-cdn.com/v4/letter/w/848f3c/32.png) [@wjaskowski](https://community.wandb.ai/u/wjaskowski)\
**Post date:** [January 4, 2023, 4:20pm UTC](https://community.wandb.ai/t/advanced-legend-doesnt-display-properly-or-displays-object-object/3638/1 "2023-01-04T16:20:20Z")

</div>

I am trying to customize the legend on plots using the Advanced Legend syntax. But have a couple of problems there. Here is the workspace/plot: [Weights & Biases](https://wandb.ai/gat/wandb-debug5?workspace=user-wjgat)

I am using the following string in the advanced legend: `A=(${config:spec.url}) B=(${config:url}) C=${config:spec_name}`

This should render as `A=(http:\google.com/) B=(http:\google.com/) C=(google) but:

1. It renders as `A=( ) B=(http:\\google.com) C=google`
2. The “on hover” legend renders as `A=( ) B=([Object Object]) C=google`

 ![image](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/2X/3/339707641144d812c66bf80fbc18a6b6f79de511.png)

Are those bugs in wandb or I don’t get sth?

---

<div class="post-metadata">

**Author:** ![mohammadbakir](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@mohammadbakir](https://community.wandb.ai/u/mohammadbakir)\
**Post date:** [January 9, 2023, 9:47pm UTC](https://community.wandb.ai/t/advanced-legend-doesnt-display-properly-or-displays-object-object/3638/2 "2023-01-09T21:47:50Z")

</div>

Hi @wjaskowski thanks for writing in and happy to help. I reviewed your workspace and your legend expression is correct. The legend label does render correctly but as you mentioned the tooltip does not. This appears to be a bug on our end with how the tooltip handles URL visualization. I reported it to our eng team and will update you once I hear back on a fix. Thanks for reporting!

---

<div class="post-metadata">

**Author:** ![wjaskowski](https://avatars.discourse-cdn.com/v4/letter/w/848f3c/32.png) [@wjaskowski](https://community.wandb.ai/u/wjaskowski)\
**Post date:** [January 9, 2023, 10:16pm UTC](https://community.wandb.ai/t/advanced-legend-doesnt-display-properly-or-displays-object-object/3638/3 "2023-01-09T22:16:16Z")

</div>

Thx for looking into @mohammadbakir! But why do you say that the legend renders correctly when it renders `A=( )` instead of `A=(https:\\google.com)`?

---

<div class="post-metadata">

**Author:** ![mohammadbakir](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@mohammadbakir](https://community.wandb.ai/u/mohammadbakir)\
**Post date:** [January 9, 2023, 10:48pm UTC](https://community.wandb.ai/t/advanced-legend-doesnt-display-properly-or-displays-object-object/3638/4 "2023-01-09T22:48:29Z")

</div>

Hi @wjaskowski , apologies. I made some test edits o a copy of your workspace and used `A=(${config:spec_url})` which renders correctly. Your exact example isn’t rendering.

---

<div class="post-metadata">

**Author:** ![wjaskowski](https://avatars.discourse-cdn.com/v4/letter/w/848f3c/32.png) [@wjaskowski](https://community.wandb.ai/u/wjaskowski)\
**Post date:** [January 10, 2023, 8:20am UTC](https://community.wandb.ai/t/advanced-legend-doesnt-display-properly-or-displays-object-object/3638/5 "2023-01-10T08:20:42Z")

</div>

Which means that this is another bug, isn’t it?

---

<div class="post-metadata">

**Author:** ![mohammadbakir](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@mohammadbakir](https://community.wandb.ai/u/mohammadbakir)\
**Post date:** [January 10, 2023, 8:52pm UTC](https://community.wandb.ai/t/advanced-legend-doesnt-display-properly-or-displays-object-object/3638/6 "2023-01-10T20:52:32Z")

</div>

Correct, it is a bug.

---

<div class="post-metadata">

**Author:** ![wjaskowski](https://avatars.discourse-cdn.com/v4/letter/w/848f3c/32.png) [@wjaskowski](https://community.wandb.ai/u/wjaskowski)\
**Post date:** [January 10, 2023, 10:28pm UTC](https://community.wandb.ai/t/advanced-legend-doesnt-display-properly-or-displays-object-object/3638/7 "2023-01-10T22:28:12Z")

</div>

Thank you @mohammadbakir for confirming that. This drove me crazy for a while :/. Is there a place where I can track the status of this bug?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/1X/366b649231631dbab896843020da0056074ac79d.png) [@system](https://community.wandb.ai/u/system)\
**Post date:** [March 11, 2023, 10:28pm UTC](https://community.wandb.ai/t/advanced-legend-doesnt-display-properly-or-displays-object-object/3638/8 "2023-03-11T22:28:21Z")

</div>

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