Assistance in creating autoscaling labels in Gantt Chart

Please find below a screenshot of a Gantt chart created using the deprecated plotly.figure_factory. create_gantt. As seen from the screenshot, certain labels are longer than their respective bars.

I would like to explore either or both of the following strategies, if possible
I would greatly appreciate some kind advice on

  1. how to autoscale the label size so that all labels are able to fit into their respective bars on the top of the diagram
  2. scale the bars and the labels at the bottom of the graph with respect to the ones on the top, so that are adjusted.

Thank you!

How do you get the labels on the Gantt Bars?