Use dhtmlx-gantt to dynamically calculate the width of the timeline column cells

0

How to dynamically set the cell width of the right time axis in dhtmlx-gantt, for example, set the cell width of the cell belonging to November to 40px, while the cell width of other months is 20px.


I tried using the gantt.config.min_column_width configuration, but the width of the cells on the right will be uniformly changed. I want the effect to be differentiated between different months.

Hello Ance,
DHTMLX Gantt doesn’t have that functionality. There is no way to implement that, unless you modify the source code or redefine the internal functions that generate the scale elements. But this is not recommended as there is no guarantee that Gantt will work as expected. Also, when a newer version is released and you want to update, we won’t provide the guides on how to migrate the changes.

I will add it as a feature request to our internal wishlist. The dev team will think about adding that feature.