In Observable/d3/javascript, how do you apply a filter from based on a action in one plot to another plot?
I have 2 functions in Observable which each create a plot. I designed it so that when I click the squares in the legend of the first plot, it filters which data is displayed (there are 7 lines for each. of 7 object_types). That works! But I want to also filter the second plot based on the selections made in that first plot. The 2 functions use different datasets for their plots.