Including flags on a graph layout

Hello. I have a scenario in my application to include flags in the line graph. I imagine it to look something like this

Could you help me with how to do this. Thanks