I want to make a bar above my health

I have a datapack thats got a cooldown scoreboard, and it increases every tick. I want to link a bar (bossbar?) to it that goes above my health. I also want a second one thats linked to another scoreboard above my food.
Continue to help post