AnyChart JavaScript Gantt Chart supports adaptive label formatting that automatically adjusts text content based on available bar width on the timeline.
This sample creates a resource Gantt chart where timeline labels display full person names when bars are wide enough, and switch to initials (e.g., "T.M") when the bar is too narrow. The format function measures label width against bar bounds at render time and returns the appropriate text. The chart also sets custom row selection and hover fills, configures numbered and Person-titled data-grid columns, and zooms to a specific date range for focused viewing.
See the Gantt Chart documentation for all configuration options.