d3.js brush fill color histogram
问题 i have created some histogram with d3.js . I managed to change fill color of rect depending on the position of the brush . But i would like to change the color inside a rect . For example if the brush start is in the middle of the rect i would like to have my rect with two color. At the moment this is what i have : And this is what i would like to have : I have seen some examples like Here. I'm new to d3 and i try to understand the code. I see that they use clip-path that certainly hide the