abstract out adding flag/tick to bars
add a custom class to flags
draw a flag for the max value
add a flag on click
toggle flag on click
scale flag width with number size