This topic is locked

GANTT chart sample customization code

9/17/2025 12:29:46 PM
PHPRunner Tips and Tricks
Sergey Kornilov admin

This article applies to both PHPRunner and ASPRunner.NET since the code is in Javascript. The code goes to Javascript Create Gantt event that is available in version 11.1 of the software.

A complete list of available configuration parameters can be found at https://github.com/frappe/gantt?tab=readme-ov-file#configuration

// change the width of individual columns
settings.column_width = 35;

// allow switching between view modes: Year,Week,Day etc
settings.view_mode_select = true;

// set the initial view mode of the chart
settings.view_mode="Day";