How to toggle legend items to be in off state on chart load?

I’m having a hard time figuring out how to toggle off legend trace items when loading my chart. The legend seems to always want to keep everything on. I have many data points on my chart and would like most of them to be turned off when the chart loads. I’ve tried doing:

layout: {legend: “toggle”}

on some of my trace objects, but this doesn’t seem to work. I know if I replace “toggle” to false, it does disable it from being viewed completely. I just want it in the off state when loading up my chart (scatter lines not showing up, but the option still available to click on to enable).

Here’s how: https://codepen.io/etpinard/pen/WNNxMmm

That worked great! Thanks for the help!