From 581bd567cc0b96e64a5877f274ff14cb9dea0e69 Mon Sep 17 00:00:00 2001
From: "Auguston, Mikhail" <maugusto@nps.edu>
Date: Mon, 24 Feb 2020 13:33:54 -0800
Subject: [PATCH] Upload New File

---
 .../Example44_Gantt_Chart.mp                  | 39 +++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 Firebird_Pre_loaded_examples/Example44_Gantt_Chart.mp

diff --git a/Firebird_Pre_loaded_examples/Example44_Gantt_Chart.mp b/Firebird_Pre_loaded_examples/Example44_Gantt_Chart.mp
new file mode 100644
index 0000000..fe4483d
--- /dev/null
+++ b/Firebird_Pre_loaded_examples/Example44_Gantt_Chart.mp
@@ -0,0 +1,39 @@
+/*	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;
-- 
GitLab