|
1 | | -# Airlines Tracker using Gantt Chart |
| 1 | +# Airlines Tracker Using Gantt Chart |
2 | 2 |
|
3 | | -A React demo application showcasing airline flight tracking in a customized Syncfusion Gantt chart. |
| 3 | +This repository contains a React application visualizing airline flight schedules using Syncfusion Gantt chart. It demonstrates how Gantt charts adapt for time‑based resource scheduling beyond traditional project management. |
4 | 4 |
|
5 | 5 | ## Features |
6 | 6 |
|
7 | | -- Resource view Gantt chart with flights grouped by airport code |
8 | | -- Custom taskbar templates for active, completed, and upcoming flights |
9 | | -- Tooltip cards showing departure, arrival, and aircraft model details |
10 | | -- Day/hour timeline with event markers for a selected current time |
11 | | -- Built with Syncfusion `@syncfusion/ej2-react-gantt` |
| 7 | +- **Resource view Gantt chart** with flights grouped by airport |
| 8 | +- **Custom taskbar templates** for active, completed, and upcoming flights |
| 9 | +- **Rich tooltip cards** with departure, arrival, and aircraft details |
| 10 | +- **Day and hour timeline** with event markers |
| 11 | +- **Built with** `@syncfusion/ej2-react-gantt` |
12 | 12 |
|
13 | 13 | ## Prerequisites |
14 | 14 |
|
15 | | -- Node.js 14+ or compatible version |
| 15 | +- Node.js ( LTS or later ) |
16 | 16 | - npm |
17 | 17 |
|
18 | | -## Installation |
| 18 | +## Installation and Run |
19 | 19 |
|
20 | 20 | ```bash |
21 | 21 | npm install |
22 | 22 | npm start |
23 | 23 | ``` |
24 | 24 |
|
25 | | -Then open `http://localhost:3000` in your browser. |
| 25 | +Open the application at `http://localhost:3000` |
26 | 26 |
|
27 | 27 | ## How It Works |
28 | 28 |
|
29 | | -The sample uses `src/data.js` for `TimeTable` flight data and airport resources. |
30 | | -`src/index.js` configures: |
| 29 | +**Data configuration** (`src/data.js`): |
| 30 | +- Flight schedules (`TimeTable`) and resources |
31 | 31 |
|
| 32 | +**Application setup** (`src/index.js`): |
32 | 33 | - `taskFields` and `resourceFields` |
33 | | -- `labelSettings` for departure and arrival labels on tasks |
34 | | -- `taskbarTemplate` to color-code flights by status |
35 | | -- `tooltipSettings` for rich hover details |
| 34 | +- `labelSettings` for departure and arrival labels |
| 35 | +- `taskbarTemplate` to differentiate flight status |
| 36 | +- `tooltipSettings` for details |
| 37 | +- `viewType` set to `ResourceView` |
36 | 38 |
|
37 | 39 | ## Notes |
38 | 40 |
|
39 | | -- Current time is hardcoded as `02/13/2021 15:25:00` for demonstration. |
40 | | -- `Dep` is the flight start date and `Journey` is duration in hours. |
41 | | -- The Gantt chart view type is configured as `ResourceView`. |
| 41 | +- "Current time" hardcoded as `02/13/2021 15:25:00` |
| 42 | +- `Dep` = flight start time, `Journey` = duration in hours |
| 43 | +- Static data without real‑time updates |
| 44 | + |
| 45 | +## Use Cases |
| 46 | + |
| 47 | +This repository demonstrates: |
| 48 | +- Modeling non-project data in Gantt charts |
| 49 | +- Resource view for scheduling scenarios |
| 50 | +- Customizing taskbars and tooltips in Syncfusion React Gantt |
0 commit comments