# How to set series as NOT selected in Plotly interactive HTML

**URL:** <https://discourse.julialang.org/t/how-to-set-series-as-not-selected-in-plotly-interactive-html/76671>\
**Category:** General Usage\
**Tags:** plotting, plotlyjs\
**Created:** [February 18, 2022, 5:45am UTC](https://discourse.julialang.org/t/how-to-set-series-as-not-selected-in-plotly-interactive-html/76671 "2022-02-18T05:45:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CaoHua](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/caohua/32/16083_2.png) [@CaoHua](https://discourse.julialang.org/u/CaoHua)\
**Post date:** [February 18, 2022, 5:45am UTC](https://discourse.julialang.org/t/how-to-set-series-as-not-selected-in-plotly-interactive-html/76671/1 "2022-02-18T05:45:28Z")

</div>

Dears,

I am using Plotly as the backend to generate line chart, and save the chart as _html_ file.  
There are several series/lines in the chart. And I would like to show just part of them as the default.

How can I set up the status of some series/lines as hided (NOT selected) in the output html file, and click them to show.  
For time being, all series/lines are shown when the html file is opened.

Thanks for help.

Best Regards.

---

<div class="post-metadata">

**Author:** ![disberd](https://avatars.discourse-cdn.com/v4/letter/d/8edcca/32.png) [@disberd](https://discourse.julialang.org/u/disberd)\
**Post date:** [February 18, 2022, 8:54am UTC](https://discourse.julialang.org/t/how-to-set-series-as-not-selected-in-plotly-interactive-html/76671/2 "2022-02-18T08:54:14Z")

</div>

On the plotly library side, [this](https://plotly.com/julia/reference/scatter/#scatter-visible) is the parameter you have to use to select whether a scatter trace is visible or not by default, with the parameter set to `"legendonly"` for your intended behavior.

This can be easily done directly with PlotlyJS or PlotlyBase, but with Plots.jl I am not sure whether the package implements a way to set that option of the plotly backend.

---

<div class="post-metadata">

**Author:** ![CaoHua](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/caohua/32/16083_2.png) [@CaoHua](https://discourse.julialang.org/u/CaoHua)\
**Post date:** [March 3, 2022, 5:05am UTC](https://discourse.julialang.org/t/how-to-set-series-as-not-selected-in-plotly-interactive-html/76671/3 "2022-03-03T05:05:04Z")

</div>

Thanks for your help. I will try this 🙂

B.Rgds.
