Set Row and Task Height
Navigate to Widget Properties > Advanced > Gantt Config Script and add the following properties:| Property | Description | Default |
|---|---|---|
gantt.config.task_height | Height of the task bar in pixels | 32 |
gantt.config.row_height | Height of the entire grid row in pixels | 38 |
Compact Mode for Large Charts
When working with charts containing many items, reduce both values to show more rows on screen. For example, a compact configuration:task_height = 32 and row_height = 38 provides more padding between rows and larger task bars, which improves readability when you have fewer items.
Pair with Right-Side Text
If you are using right-side text on task bars, adjust the row height to accommodate both the task bar and the text label. A tight row height may cause text to overlap adjacent rows. Start with a configuration like:row_height if the right-side text appears clipped or overlaps.
Verification
You should now see the Gantt chart rows rendered at your configured height. Compare the row spacing before and after the change to confirm the values took effect. If rows appear too cramped, increaserow_height by a few pixels.
See also
- Configure Right-Side Text on Task Bars
- Configure the Time Scale
- Use Fullscreen and Maximize Mode
- Write Gantt Config Scripts
- Apply Custom CSS to the Gantt Widget
Sources
Sources
KB Articles
- Adjust the right-side text properties
- How to make Gantt row height smaller / bigger
- Gantt as a full screen component
- How to configure the time scale?
- Gantt - Configuration Properties and default values
prod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/widget/GanttWidgetConfig.javaprod-gantt-src/com.nextedy.polarion.gantt.client/src/js/main.jsprod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/model/columns/Table.javaprod-gantt-src/com.nextedy.polarion.gantt.client/cypress/e2e/view/rootItemsDisplayCorrectly.cy.tsprod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/model/Config.java