How to Toggle Graph Types for Different Data Sets

Let’s say I have 2 sets of data. I want to display them on the same graph, and I want to be able to toggle each separately between bar and scatter plots… How do I do it?? I have researched endlessly for a way to implement this. I feel like it shouldn’t be that difficult. Is there a way to pair buttons to specific traces of data?

Thanks!