Skip to content

Modules and Functions

wilsonleong edited this page Jan 1, 2022 · 13 revisions

gantt.py

This module runs the main application. The process goes like this:

  1. Load configurations
  2. Load project data (based on configurations defined)
  3. Pre-process the project data
  4. Filter and aggregate the project data, if applicable
  5. Generate the gantt chart based on the processed project data

data.py

This module handles the following:

  • loading configuration data
  • pre-processing the input data
  • filtering & aggregating the input data

get_cfg(cfg_file_path)
This function reads the configurations from the JSON file.

get_data(cfg)
This function loads the project data from the input file based on the config JSON file.

preprocess_data(cfg, df)
This function prepares the project data for the chart.

filter_agg_data(cfg, df)
This function filters and aggregates the data based on the config, if applicable.

chart.py

This module generates the gantt chart based on the configurations and the input file.

generate_gantt(cfg, df2)
This function plots the gantt chart and saves it as a PNG file.

Clone this wiki locally