2017 © Pedro Peláez
 

library gantt

Simple Gantt chart

image

gpor/gantt

Simple Gantt chart

  • Friday, April 6, 2018
  • by gpor
  • Repository
  • 1 Watchers
  • 0 Stars
  • 79 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 3 % Grown

The README.md

gantt

Simple Gantt chart, (*1)

instantiate

``` php $groupedCols = \Gpor\Gantt\DatesHelper::ganttColGroups( ($_GET['start'] ?? time()), ($_GET['end'] ?? null) ); $gantt = \Gpor\Gantt\Factory::newGantt($groupedCols, $rows, ['isMobile' => $agent->isMobile()]);, (*2)


Config ------ ``` php # custom bar text $gantt->barTextFunction = function(\Gpor\Gantt\Bar $bar) { return date('j M Y', strtotime($bar->start_date)) . ' - ' . date('j M Y', strtotime($bar->end_date)); }; # disable bar text $gantt->barTitleAttrs = false; $gantt->barTextShow = false;

if you disable barTitleAttrs, the bar will have a data-text atrribute instead, (*3)

The Versions

06/04 2018

dev-master

9999999-dev

Simple Gantt chart

  Sources   Download

MIT

by Lee Stevens