本文整理汇总了PHP中GanttGraph::StrokeCSIM方法的典型用法代码示例。如果您正苦于以下问题:PHP GanttGraph::StrokeCSIM方法的具体用法?PHP GanttGraph::StrokeCSIM怎么用?PHP GanttGraph::StrokeCSIM使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GanttGraph
的用法示例。
在下文中一共展示了GanttGraph::StrokeCSIM方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: GanttBar
<?php
// Gantt example to create CSIM
include "../jpgraph.php";
include "../jpgraph_gantt.php";
$bar1 = new GanttBar(0, "Activity 1", "2001-12-21", "2002-01-20");
$bar1->SetCSIMTarget('#', 'Go back 1');
$bar1->title->SetCSIMTarget('#', 'Go back 1 (title)');
$bar2 = new GanttBar(1, "Activity 2", "2002-01-03", "2002-01-25");
$bar2->SetCSIMTarget('#', 'Go back 2');
$bar2->title->SetCSIMTarget('#', 'Go back 2 (title)');
$graph = new GanttGraph(500);
$graph->title->Set("Example with image map");
$graph->ShowHeaders(GANTT_HYEAR | GANTT_HMONTH | GANTT_HDAY | GANTT_HWEEK);
$graph->scale->week->SetStyle(WEEKSTYLE_FIRSTDAY);
$graph->scale->week->SetFont(FF_FONT1);
$graph->Add(array($bar1, $bar2));
// And stroke
$graph->StrokeCSIM();
?>
示例2: array
<?php
// Gantt example to create CSIM using CreateSimple()
include "../jpgraph.php";
include "../jpgraph_gantt.php";
$data = array(array(0, ACTYPE_GROUP, "Phase 1", "2001-10-26", "2001-11-23", '', '#1', 'Go home'), array(1, ACTYPE_NORMAL, " Label 2", "2001-10-26", "2001-11-16", 'ab,cd', '#2', 'Go home'), array(2, ACTYPE_NORMAL, " Label 3", "2001-11-20", "2001-11-22", 'ek', '#3', 'Go home'), array(3, ACTYPE_MILESTONE, " Phase 1 Done", "2001-11-23", 'M2', '#4', 'Go home'));
// The constrains between the activities
$constrains = array(array(1, 2, CONSTRAIN_ENDSTART), array(2, 3, CONSTRAIN_STARTSTART));
$progress = array(array(1, 0.4));
$graph = new GanttGraph(500);
$graph->title->Set("Example with image map");
$graph->ShowHeaders(GANTT_HYEAR | GANTT_HMONTH | GANTT_HDAY | GANTT_HWEEK);
$graph->scale->week->SetStyle(WEEKSTYLE_FIRSTDAY);
$graph->scale->week->SetFont(FF_FONT1);
$graph->CreateSimple($data, $constrains, $progress);
// Add the specified activities
//SetupSimpleGantt($graph,$data,$constrains,$progress);
// And stroke
$graph->StrokeCSIM('ganttcsimex02.php');
?>