Please review any and all PUBLIC repositories, groups and associate files. These allow anyone on the Internet to access without authentication. Repository and group owners are responsible for their content and permission settings. Go to your project(s), click on Settings > General and expand the "Visibility, project features, permissions" to change this setting.

Commit 581bd567 authored by Auguston, Mikhail's avatar Auguston, Mikhail

Upload New File

parent d624074d
/* Example44
Gantt chart example
*/
SCHEMA S
ROOT A: a1 a2;
ROOT B: b1 a2 b2;
A, B SHARE ALL a2;
COORDINATE $a1: a1, $a2: a2, $b1: b1, $b2: b2
DO
SET $a1.duration AT LEAST 3;
SET $a2.duration AT LEAST 5;
SET $b1.duration AT LEAST 1;
SET $b2.duration AT LEAST 2;
OD;
TABLE gantt_1{
TABS string event_name,
number start_time,
number duration_time;
};
BAR CHART gantt_2 { TITLE("Example of Gantt Chart");
FROM gantt_1;
X_AXIS event_name;
ROTATE; /* to place the X_AXIS vertical */
};
COORDINATE $e: $$EVENT
DO /* add this event to the Table */
gantt_1 <|
event_name: SAY($e),
start_time: $e.start.smallest,
duration_time: $e.duration.largest;
OD;
SHOW gantt_2;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment