# How to Display Legends in Bar charts

**URL:** <https://discourse.nodered.org/t/how-to-display-legends-in-bar-charts/2205>\
**Category:** Dashboard\
**Created:** [10 August 2018 13:02 UTC](https://discourse.nodered.org/t/how-to-display-legends-in-bar-charts/2205 "2018-08-10T13:02:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ajay](https://avatars.discourse-cdn.com/v4/letter/a/f4b2a3/32.png) [@Ajay](https://discourse.nodered.org/u/Ajay)\
**Post date:** [10 August 2018 13:02 UTC](https://discourse.nodered.org/t/how-to-display-legends-in-bar-charts/2205/1 "2018-08-10T13:02:59Z")

</div>

Hello

I am new to node red. I am working on a dashboard. I want to display a barchart along with legends. Can some one tell me how can i do that?

Thanks  
Ajay

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [10 August 2018 13:39 UTC](https://discourse.nodered.org/t/how-to-display-legends-in-bar-charts/2205/2 "2018-08-10T13:39:41Z")

</div>

err - hmm - the option disappears when you select bar chart... that looks like a bug.  
Can you raise an issue on the dashboard project please so we track it.

---

<div class="post-metadata">

**Author:** ![Ajay](https://avatars.discourse-cdn.com/v4/letter/a/f4b2a3/32.png) [@Ajay](https://discourse.nodered.org/u/Ajay)\
**Post date:** [10 August 2018 13:43 UTC](https://discourse.nodered.org/t/how-to-display-legends-in-bar-charts/2205/3 "2018-08-10T13:43:36Z")

</div>

Okay. Thanks for the answer.  
I will file a bug for it.  
Can you share the email/link for reporting this bug?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [10 August 2018 13:45 UTC](https://discourse.nodered.org/t/how-to-display-legends-in-bar-charts/2205/4 "2018-08-10T13:45:07Z")

</div>

> **[node-red/node-red-dashboard](https://github.com/node-red/node-red-dashboard/issues)**
>
> A dashboard UI for Node-RED. Contribute to node-red/node-red-dashboard development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![Ajay](https://avatars.discourse-cdn.com/v4/letter/a/f4b2a3/32.png) [@Ajay](https://discourse.nodered.org/u/Ajay)\
**Post date:** [10 August 2018 13:45 UTC](https://discourse.nodered.org/t/how-to-display-legends-in-bar-charts/2205/5 "2018-08-10T13:45:49Z")

</div>

Thanks dceejay.  
I will file the bug now.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [10 August 2018 13:47 UTC](https://discourse.nodered.org/t/how-to-display-legends-in-bar-charts/2205/6 "2018-08-10T13:47:09Z")

</div>

You may be able to go to line chart mode - set the option to display legend then swap back to bar chart - it may not clear the field 🙂

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [10 August 2018 15:31 UTC](https://discourse.nodered.org/t/how-to-display-legends-in-bar-charts/2205/7 "2018-08-10T15:31:24Z")

</div>

Hmm looking at it now - not so sure - the legend would just repeat what is already under the bars wouldn't it ?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/b/bb957bf8809f183f97cd1dc1f260f19457f4e7be.png)

Do you have a counter example you could share ? Thanks
