本文整理汇总了PHP中PieGraph::StrokeCSIMImage方法的典型用法代码示例。如果您正苦于以下问题:PHP PieGraph::StrokeCSIMImage方法的具体用法?PHP PieGraph::StrokeCSIMImage怎么用?PHP PieGraph::StrokeCSIMImage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PieGraph
的用法示例。
在下文中一共展示了PieGraph::StrokeCSIMImage方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$p1->SetLabelType(PIE_VALUE_PER);
// The label array values may have printf() formatting in them. The argument to the
// form,at string will be the value of the slice (either the percetage or absolute
// depending on what was specified in the SetLabelType() above.
$lbl = array("Jan\n%.1f%%", "Feb\n%.1f%%", "March\n%.1f%%", "Apr\n%.1f%%", "May\n%.1f%%", "Jun\n%.1f%%");
$p1->SetLabels($lbl);
// Add drop shadow to slices
$p1->SetShadow();
// Explode all slices 15 pixels
$p1->ExplodeAll(15);
// Setup the CSIM targets
global $_wrapperfilename;
$targ = array();
$alt = array();
$wtarg = array();
for ($i = 0; $i <= $n; ++$i) {
$urlarg = 'pie_clickedon=' . ($i + 1);
$targ[] = $_wrapperfilename . '?' . $urlarg;
$alt[] = 'val=%d';
$wtarg[] = '';
}
$p1->SetCSIMTargets($targ, $alt, $wtarg);
$p1->SetMidCSIM($targ[0], $alt[0], $wtarg[0]);
// Add plot to pie graph
$piegraph->Add($p1);
// Send back the image when we are called from within the <img> tag
$piegraph->StrokeCSIMImage();
?>