alcallej/darkgantt

一个非常简单的甘特图

安装: 19

依赖: 0

建议者: 0

安全: 0

星标: 0

关注者: 0

分支: 0

开放性问题: 0

语言:CSS

dev-master 2019-07-02 22:19 UTC

This package is not auto-updated.

Last update: 2024-09-24 15:27:28 UTC


README

PHP中的简单甘特图

使用方法

use Dark\Dummy\Gantt\Gantt;

$dates = array(
    array('start' => '2018-10-08', 'end' => '2021-10-24', 'label' => 'Activity period'),
    array('start' => '2018-10-09', 'end' => '2018-12-25', 'label' => 'Activity 2'),
    array('start' => '2018-12-25', 'end' => '2019-06-12', 'label' => 'Activity 3'),
    array('start' => '2019-06-12', 'end' => '2019-10-25', 'label' => 'Activity 4')
);

$gantt = new Gantt($dates);

echo "<!DOCTYPE html>
<html>
<head>
    <meta charset='utf-8'>
    <meta http-equiv='X-UA-Compatible' content='IE=edge'>
    <title></title>
    <link rel='stylesheet' href='./src/assets/scss/darkgantt.css'>
    <script src='https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js'></script>
</head>
<body>";
echo $gantt;
echo "</body>
</html>";

截图

Gantt Chart