# Turn off individual plot in JS

**URL:** <https://community.plotly.com/t/turn-off-individual-plot-in-js/27218>\
**Category:** plotly.js\
**Created:** [August 13, 2019, 4:46pm UTC](https://community.plotly.com/t/turn-off-individual-plot-in-js/27218 "2019-08-13T16:46:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![illuzioner](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@illuzioner](https://community.plotly.com/u/illuzioner)\
**Post date:** [August 13, 2019, 4:46pm UTC](https://community.plotly.com/t/turn-off-individual-plot-in-js/27218/1 "2019-08-13T16:46:01Z")

</div>

Is there a way to display a plot with some of the traces initially turned off?

---

<div class="post-metadata">

**Author:** ![etienne](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/etienne/32/17_2.png) [@etienne](https://community.plotly.com/u/etienne)\
**Post date:** [August 14, 2019, 1:26pm UTC](https://community.plotly.com/t/turn-off-individual-plot-in-js/27218/2 "2019-08-14T13:26:14Z")

</div>

Here’s how: [https://codepen.io/etpinard/pen/MWgKNOm](https://codepen.io/etpinard/pen/MWgKNOm)

---

<div class="post-metadata">

**Author:** ![illuzioner](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@illuzioner](https://community.plotly.com/u/illuzioner)\
**Post date:** [August 14, 2019, 3:54pm UTC](https://community.plotly.com/t/turn-off-individual-plot-in-js/27218/3 "2019-08-14T15:54:51Z")

</div>

Thank you, the visible ‘legendonly’ option was just what I needed!
