Gantt Chart advanced hover text

I want to have complex hover texts like the ones shown in the link below. How do so? There seems to be no arguement for the hovertext in gantt charts.

https://plotly.com/python/hover-text-and-formatting/#advanced-hover-template