Show/Hide line chart data series with button or switch - Dashboard 2.0

May I suggest to use plotly: Line charts in JavaScript

I havent tested it on dashboard 2, but it works fine on dashboard

Examples: