Black Lives Matter. Please consider donating to Black Girls Code today.

Multiple traces using a shared slider variable

As the title hints, I’m struggling to create a plotly chart that has multiple lines that are functions of the same slider variable.

I hacked something together using bits and pieces from the documentation: This works for one line. enter image description here

Now I want to add more lines to the same chart, but this is where I’m struggling. I’m getting a PlotlyListEntryError: Invalid entry found in 'data' at index, '0' Path To Error: ['data'][0]

Can someone please help?