World-of-Workflows / WoWf_ProjectManagement

Project Management solution for World of Workflows
0 stars 0 forks source link

Display tasks as gantt charts #3

Open jimcantor opened 11 months ago

jimcantor commented 11 months ago

We'll use a library like Google Charts to integrate a Gantt chart. This requires loading the library and then creating the chart based on project data.

HTML for Gantt Chart

<section id="gantt-chart">
    <h2>Gantt Chart Timeline</h2>
    <div id="chart-div"></div>
</section>

JavaScript for Gantt Chart

google.charts.load('current', {'packages':['gantt']});
google.charts.setOnLoadCallback(drawChart);

function drawChart() {
    var data = new google.visualization.DataTable();
    // Define columns for the Gantt chart
    // Add data rows for tasks

    var options = {
        // Configuration options for the chart
    };

    var chart = new google.visualization.Gantt(document.getElementById('chart-div'));
    chart.draw(data, options);
}

This script needs to be modified to include actual project data and configurations for the Gantt chart.

Styling for Enhanced User Experience

The CSS will be updated for better aesthetics and user interaction, including styles for forms, buttons, and the chart area.

CSS Updates

/* Styles for forms, buttons, and chart area */
#resource-form, #chart-div {
    margin: 20px 0;
}

input[type="text"], select {
    padding: 10px;
    margin-right: 10px;
}

input[type="submit"] {
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #45a049;
}

/* Additional responsive and aesthetic styles */

These enhancements create a more interactive front-end. From here, we can continue to add more features or refine existing ones.