本文整理汇总了PHP中pChart::drawRadar方法的典型用法代码示例。如果您正苦于以下问题:PHP pChart::drawRadar方法的具体用法?PHP pChart::drawRadar怎么用?PHP pChart::drawRadar使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pChart
的用法示例。
在下文中一共展示了pChart::drawRadar方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testDrawRadar
public function testDrawRadar()
{
// Dataset definition
$DataSet = new pData();
$DataSet->addPoints(array("Memory", "Disk", "Network", "Slots", "CPU"), "Label");
$DataSet->addPoints(array(1, 2, 3, 4, 3), "Serie1");
$DataSet->addPoints(array(1, 4, 2, 6, 2), "Serie2");
$DataSet->AddSeries("Serie1");
$DataSet->AddSeries("Serie2");
$DataSet->SetAbscissaLabelSeries("Label");
$DataSet->SetSeriesName("Reference", "Serie1");
$DataSet->SetSeriesName("Tested computer", "Serie2");
// Initialise the graph
$canvas = new TestCanvas();
$Test = new pChart(400, 400, $canvas);
$Test->setFontProperties("Fonts/tahoma.ttf", 8);
$Test->setGraphArea(30, 30, 370, 370);
// Draw the radar graph
$Test->drawRadarAxis($DataSet->GetData(), $DataSet->GetDataDescription(), TRUE, 20, new Color(120), new Color(230));
$Test->drawRadar($DataSet->GetData(), $DataSet->GetDataDescription(), 50);
// Finish the graph
$Test->drawLegend(15, 15, $DataSet->GetDataDescription(), new Color(255));
$Test->setFontProperties("Fonts/tahoma.ttf", 10);
$Test->drawTitle(0, 22, "Example 8", new Color(50), 400);
$this->assertEquals('be9f2fb9cb890e3ffdae443376d80be9', md5($canvas->getActionLog()));
}