Pick “Gantt Chart” element from toolbar and drag it onto the page.
Open the element's properties and fill in required fields with data.
Type from DB. Required.
Source of first field Type. Required.
Task ID. Field of Task. Required.
Task Label. Field of Task. Required.
Task Start Date. Field of Task. Required.
Task Duration. Field of Task. Required.
Task Progress. Field of Task. Required.
Task Type. Field of Task. Required.
Task Collapsed. Field of Task.Optional.
Task User. Field of Task. Optional.
Task Parent. Field of Task. Optional.
Task Depend On. Field of Task. Optional.
Colors for Project, Milestone and Task types.
Initialize Gantt Chart with visible/invisible tasklist
Best practice is to create a separate type for tasks in Bubble DB, for ex. “Task”.
The type should have required fields:
(REQUIRED) ID, it can be custom id, or bubble unique id, type ‘text’.
(REQUIRED) Label, type ‘text’.
(REQUIRED) Start Date, type ‘bubble date’.
(REQUIRED) Duration, type ‘number’ it should be indicated as seconds. 86400 seconds represents a full 24h day.
(REQUIRED) Progress, type ‘number’ it should be an number between 0-100, (representation of progress in percents).
(REQUIRED) Type, type ‘text’, it can be ‘task’, ‘project’ or ‘milestone’.
(OPTIONAL) Collapsed, type ‘yes/no’, it will show task expanded or collapsed.
(OPTIONAL) User, type ‘text’. This field can be written in DB like a simple name ‘John Doe’ ro it can be written like html link, ex: ‘<a href=”url_here”>John Doe</a>’.
(OPTIONAL) Parent, type ‘text’. This field should be another task id.
(OPTIONAL) Dependent, type ‘list of text’. This should be a list of dependent task id.
All the properties marked with REQUIRED are important for rendering in gantt chart. If a REQUIRED field is ignored the task will be ignored by gantt chart. The simplest way to get gantt chart working is to prepare your data according our documentation.
An example of data from Bubble Task type:
An example of Task type in Bubble:
Project Color - color for tasks that are marked like ‘project’.
Milestone Color - color for tasks that are marked like ‘milestone’.
Task Color - color for tasks that are marked like ‘task’.
All three options are optional. By default project color is #F95C4C, milestone color is #0287D0 and task color is #8E44AD.
Show Task List - will render a gantt chart with attached tasklist or not.
Scale X - will zoom the chart on X axis, minimum value 2, maximum value 24.
Scale Y - will zoom the chart on Y axis, minimum value 7, maximum value 100.
Center Chart - will center the chart on current date/time.