# Add possibility to toggle visibility of lines from line chart

**URL:** https://discuss.elastic.co/t/add-possibility-to-toggle-visibility-of-lines-from-line-chart/62943
**Category:** Kibana
**Created:** [October 13, 2016, 1:01pm UTC](https://discuss.elastic.co/t/add-possibility-to-toggle-visibility-of-lines-from-line-chart/62943 "2016-10-13T13:01:42Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![heilaaks](https://avatars.discourse-cdn.com/v4/letter/h/4bbf92/32.png) [@heilaaks](https://discuss.elastic.co/u/heilaaks)
#### Post date: [October 13, 2016, 1:01pm UTC](https://discuss.elastic.co/t/add-possibility-to-toggle-visibility-of-lines-from-line-chart/62943/1 "2016-10-13T13:01:42Z")

</div>

If there are multiple lines in the same line charts, the colors are not a good way to distinguish the different lines. Sometimes the lines may be overlapping and it might be hard to see what line is which one since the mouse focus point is jumping if lines are close each others. In these kind of cases the color picker does not bring any value.

1. Please consider implement a way to change or remove the line color picker from line chart legend and replace it with a possibility of clicking the line which would toggle the line visibility on and off.

2. Please consider implement a re-scaling of y-axis if one line visibility is toggled on or off. For example if one line is 100 in y axis and rest 5 lines are between values 1-5, the chart should re-scale to allow viewing the lines with much smaller values.

Thanks

---

<div class="post-metadata">

### Author: ![Joe\_Fleming](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joe_fleming/32/3561_2.png) [@Joe\_Fleming](https://discuss.elastic.co/u/Joe_Fleming)
#### Post date: [October 13, 2016, 6:08pm UTC](https://discuss.elastic.co/t/add-possibility-to-toggle-visibility-of-lines-from-line-chart/62943/2 "2016-10-13T18:08:23Z")

</div>

You can do this already using filters, simply click on the value in the legend and then click on the magnifying glass with the minus (`-`) in it. Filtering out the value will cause the y-axis scale to resize.

If there's some other kind of interaction you'd like to see, I encourage you to [open an issue on the repo](https://github.com/elastic/kibana/issues).

---

<div class="post-metadata">

### Author: ![heilaaks](https://avatars.discourse-cdn.com/v4/letter/h/4bbf92/32.png) [@heilaaks](https://discuss.elastic.co/u/heilaaks)
#### Post date: [October 14, 2016, 5:45am UTC](https://discuss.elastic.co/t/add-possibility-to-toggle-visibility-of-lines-from-line-chart/62943/3 "2016-10-14T05:45:18Z")

</div>

Nice 🙂 I had missed this one one. The magnifying glass functionality in legend was what I was looking for.

Thanks

---

<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: [July 6, 2017, 1:36pm UTC](https://discuss.elastic.co/t/add-possibility-to-toggle-visibility-of-lines-from-line-chart/62943/4 "2017-07-06T13:36:39Z")

</div>


