I am creating a timeline bar chart that has labels on the bars. Currently, the labels will go outside of the bar and overlap with others. I am looking to capture the width of a bar so I can use that for the label width limit to cut off anything outside of the bar.
I did find a possibly working solution on this site: https://forum.enterprisedna.co/t/deneb-limit-data-label-width/32850

Unfortunately the did not explain the full solution, and I've been unable to figure it out. I'm unsure what concat_0_x contains or how to reproduce it. I've tried the Vega documentation on scale and looking for usage examples but haven't been able to figure out a way to find the bar width.
If someone could help fill in the gaps from the above solution or provide another method of obtaining the bar width so I can use it as the width limit, it would be greatly appreciated.

