ganttChart is a plugin for jQuery built around ease of use. It supports the customization and use of frameworks like Bootstrap.
Everything you need to know can be found here: https://e-systemes.github.io/jquery-ganttChart/
The plugin requires the ImprovedDate object. You can download the last release here
Events are objects displayed in the chart with the following properties:
- startDate: a Date object
- endDate: a Date object
- title: a string displayed in the event
- url: an optional string wich transforms the event title into a link
- style: an optional string to add a css class to the event ( see theming below )
<!-- include jquery.ganttChart CSS -->
<link rel="stylesheet" href="css/jquery.ganttChart-min.css">
<!-- ganttChart wrapper -->
<div id="ganttChart"></div>
<!-- Add required improvedDate -->
<script src="js/jquery.improvedDate.min.js"></script>
<!-- Add jquery.ganttChart plugin -->
<script src="js/jquery.ganttChart.min.js"></script>
// instanciate the gantt chart
$('#ganttChart').ganttChart( {
startDate: new Date(), // the starting date of the chart
endDate: new Date(), // the ending date of the chart
events: [ // Array of the events
{
startDate: new Date(), // the starting date of the event
endDate: new Date(), // the ending date of the event
title: 'string', // title of the event
url: 'string', // optional - link the event to an url
style: 'string' // optional - class for styling the event
}
]
} );
You can use the lang option to translate month and day names.
Customize jquery.ganttChart plugin with our template options for global style preferences for easy theming and component changes.
- Show / hide components of the chart's header
- Sizing cells and events
- Styling the chart's components
Copyright ©2018 Lionel Astol
Licensed under the MIT license.