# Visualization legend does not appear in dashboard in 5.6.2

**URL:** <https://discuss.elastic.co/t/visualization-legend-does-not-appear-in-dashboard-in-5-6-2/103450>\
**Category:** Kibana\
**Created:** [October 10, 2017, 11:16pm UTC](https://discuss.elastic.co/t/visualization-legend-does-not-appear-in-dashboard-in-5-6-2/103450 "2017-10-10T23:16:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![glushkov](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@glushkov](https://discuss.elastic.co/u/glushkov)\
**Post date:** [October 10, 2017, 11:16pm UTC](https://discuss.elastic.co/t/visualization-legend-does-not-appear-in-dashboard-in-5-6-2/103450/1 "2017-10-10T23:16:25Z")

</div>

So I have these dashboards, for which after upgrading kibana 5.6.2, I tried to show the legends on some of the visualizations included in these dashboards and it does not work. What I try is the following:

- Edit dashboard
- Edit visualization
- Show the legend
- Press run
- Save the visualization
- Reload the dashboard

At that point in the previous versions of kibana I would get the legend in the visualization visible in the dashboard. Not in this one - did something change?

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [October 11, 2017, 5:04pm UTC](https://discuss.elastic.co/t/visualization-legend-does-not-appear-in-dashboard-in-5-6-2/103450/2 "2017-10-11T17:04:55Z")

</div>

Hello,

Can you check that after saving the visualization this is displayed in the Object details for the visualization?

```auto
{
  "vis": {
    "legendOpen": false
  }
}

```

To open the object details, go to Management -\> Saved Objects -\> Visualizations tab, and find the one that you saved and click on edit. The json above should be in the `uistateJSON` field.

---

<div class="post-metadata">

**Author:** ![glushkov](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@glushkov](https://discuss.elastic.co/u/glushkov)\
**Post date:** [October 13, 2017, 12:51pm UTC](https://discuss.elastic.co/t/visualization-legend-does-not-appear-in-dashboard-in-5-6-2/103450/3 "2017-10-13T12:51:46Z")

</div>

Hi Marius,  
I have many times this key-value combination in the JSON for my dashboard - what does that mean? Do I have one per visualization included in the dashboard? Here is my JSON:

```
{
  "P-2": {
    "vis": {
      "params": {
        "sort": {
          "columnIndex": null,
          "direction": null
        }
      }
    }
  },
  "P-9": {
    "vis": {
      "legendOpen": false
    }
  },
  "P-5": {
    "vis": {
      "legendOpen": false
    }
  },
  "P-10": {
    "vis": {
      "legendOpen": false
    }
  },
  "P-8": {
    "vis": {
      "legendOpen": false
    }
  },
  "P-11": {
    "vis": {
      "legendOpen": false
    }
  },
  "P-7": {
    "vis": {
      "legendOpen": false
    }
  }
}
```

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [October 13, 2017, 1:03pm UTC](https://discuss.elastic.co/t/visualization-legend-does-not-appear-in-dashboard-in-5-6-2/103450/4 "2017-10-13T13:03:59Z")

</div>

Yes, that means that the legend is closed for all those visualizations. You can change that `false` to `true` and you'll have them show then. This is saved with the dashboard and not with the vis so the dashboard one was overwriting your vis setting.

---

<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:** [November 10, 2017, 1:04pm UTC](https://discuss.elastic.co/t/visualization-legend-does-not-appear-in-dashboard-in-5-6-2/103450/5 "2017-11-10T13:04:01Z")

</div>

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