# Select which lines to display in a multiline chart

**URL:** <https://talk.observablehq.com/t/select-which-lines-to-display-in-a-multiline-chart/4194>\
**Category:** Help\
**Created:** [November 23, 2020, 12:01pm UTC](https://talk.observablehq.com/t/select-which-lines-to-display-in-a-multiline-chart/4194 "2020-11-23T12:01:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elsebih](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/elsebih/32/3866_2.png) [@elsebih](https://talk.observablehq.com/u/elsebih)\
**Post date:** [November 23, 2020, 12:01pm UTC](https://talk.observablehq.com/t/select-which-lines-to-display-in-a-multiline-chart/4194/1 "2020-11-23T12:01:57Z")

</div>

Hi,

I’ve got this [multiline chart draft](https://observablehq.com/d/76b11939f46dda27) with several data. It would be great to select which lines will going to be displayed in order to have a clearer chart, but I don’t know how to do it.

Thanks for your time!

---

<div class="post-metadata">

**Author:** ![DanielKerrigan](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/danielkerrigan/32/2958_2.png) [@DanielKerrigan](https://talk.observablehq.com/u/DanielKerrigan)\
**Post date:** [November 24, 2020, 9:31pm UTC](https://talk.observablehq.com/t/select-which-lines-to-display-in-a-multiline-chart/4194/2 "2020-11-24T21:31:22Z")

</div>

[Here an example of how to do this](https://observablehq.com/d/0e9a53d06603bdbf). I created checkboxes for the different lines and then filtered the data based on which checkboxes are selected. If you want to get fancier, you could combine the legend and the checkboxes.

---

<div class="post-metadata">

**Author:** ![elsebih](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/elsebih/32/3866_2.png) [@elsebih](https://talk.observablehq.com/u/elsebih)\
**Post date:** [November 27, 2020, 11:15am UTC](https://talk.observablehq.com/t/select-which-lines-to-display-in-a-multiline-chart/4194/3 "2020-11-27T11:15:30Z")

</div>

Lot of thanks. It works as expected!
