# Formatting Gantt charts

**URL:** <https://community.plotly.com/t/formatting-gantt-charts/2225>\
**Category:** 📊 Plotly Python\
**Created:** [September 27, 2016, 3:26pm UTC](https://community.plotly.com/t/formatting-gantt-charts/2225 "2016-09-27T15:26:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lmg6841](https://avatars.discourse-cdn.com/v4/letter/l/258eb7/32.png) [@lmg6841](https://community.plotly.com/u/lmg6841)\
**Post date:** [September 27, 2016, 3:26pm UTC](https://community.plotly.com/t/formatting-gantt-charts/2225/1 "2016-09-27T15:26:25Z")

</div>

Hello! I’m new to using plotly so I appologize if this is an easy problem to solve.

I’m using the create\_gantt to plot some timelines but I need to format the Y axis labels (the text is too long in the output html file).It doesn’t seem to have a method that would allow me to do this. What’s my best approach (using Python if that matters)? Thanks

---

<div class="post-metadata">

**Author:** ![Adam](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/adam/32/23418_2.png) [@Adam](https://community.plotly.com/u/Adam)\
**Post date:** [October 3, 2016, 5:07pm UTC](https://community.plotly.com/t/formatting-gantt-charts/2225/2 "2016-10-03T17:07:54Z")

</div>

Hi there,

Right now the best approach would be to modify your `figure` before plotting by adding a `tickangle` parameter to the x-axis param under `layout`. It looks like this:

```auto
fig['layout']['xaxis']['tickangle'] = 45 # or any number you want

```

This should angle your text so that larger won’t overlap as much.

Does this help?
