For further clarification, I am using this canvasJS guide I have linked below to create my “toggle data series” functionality
https://canvasjs.com/docs/charts/how-to/hide-unhide-data-series-chart-legend-click/