I'm trying to change the colour of a bar when a number falls within the range. For instance, here is a stacked bar chart
BarChart[{40, 20, 20, 20}, ChartLayout -> "Stacked",
BarOrigin -> Left]
If I have the number 70, I would like to change the colour of the third bar, leaving the other ones the same.
I have tried using ReplaceAll to create a wrapper version as per the first answer of this question. Straightforward way to highlight a single bar in a BarChart Yet, since it doesn't take the sum of my data points, it did not work. Thanks in advance for your help.