Link color input to chart

I have 2 charts and would like to link the color “fill” from one chart to the color “fill” of the second chart. I have a static 7 day bar chart that has checkbox inputs that drive the second chart. Example use case - select May 3 “orange” & May 8 “purple” - the chart below fill will display the count for each day with the corresponding color - May 3 “orange” & May 8 “purple”.

Any help is appreciated.

Thanks in advance,


i looks like you were already hunting around in the right zone here the color clause with:

// domain: date_legend

you would want to define a common domain array and use it in both charts. you’d need be sure that the values that are used to select the color are the same in both chart.