last formed value of histogram

 

is there any way to do this? i need at least the last (already formed) number of a histogram.

green is value 1 and red is value 2 - i need the last bar always as the one being formed can switch between the 2