本文整理汇总了PHP中pData::setAxisColor方法的典型用法代码示例。如果您正苦于以下问题:PHP pData::setAxisColor方法的具体用法?PHP pData::setAxisColor怎么用?PHP pData::setAxisColor使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pData
的用法示例。
在下文中一共展示了pData::setAxisColor方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$MyData->addPoints(array(24, -25, 26, 25, 25), "Temperature");
$MyData->addPoints(array(1, 2, VOID, 9, 10), "Humidity 1");
$MyData->addPoints(array(1, VOID, 7, -9, 0), "Humidity 2");
$MyData->addPoints(array(-1, -1, -1, -1, -1), "Humidity 3");
$MyData->addPoints(array(0, 0, 0, 0, 0), "Vide");
$MyData->setSerieOnAxis("Temperature", 0);
$MyData->setSerieOnAxis("Humidity 1", 1);
$MyData->setSerieOnAxis("Humidity 2", 1);
$MyData->setSerieOnAxis("Humidity 3", 1);
$MyData->setSerieOnAxis("Vide", 2);
$MyData->setAxisPosition(2, AXIS_POSITION_RIGHT);
$MyData->setAxisName(0, "Temperature");
$MyData->setAxisName(1, "Humidity");
$MyData->setAxisName(2, "Empty value");
/* Associate a color to each axis */
$MyData->setAxisColor(0, array("R" => 102, "G" => 129, "B" => 63));
$MyData->setAxisColor(1, array("R" => 129, "G" => 72, "B" => 63));
$MyData->setAxisColor(2, array("R" => 63, "G" => 89, "B" => 129));
/* Create the abscissa serie */
$MyData->addPoints(array("Jan", "Feb", "Mar", "Apr", "May", "Jun"), "Labels");
$MyData->setSerieDescription("Labels", "My labels");
$MyData->setAbscissa("Labels");
$MyData->setAbscissaName("Months");
/* Create the pChart object */
$myPicture = new pImage(700, 230, $MyData);
/* Draw the background */
$Settings = array("R" => 170, "G" => 183, "B" => 87, "Dash" => 1, "DashR" => 190, "DashG" => 203, "DashB" => 107);
$myPicture->drawFilledRectangle(0, 0, 700, 230, $Settings);
/* Overlay with a gradient */
$Settings = array("StartR" => 219, "StartG" => 231, "StartB" => 139, "EndR" => 1, "EndG" => 138, "EndB" => 68, "Alpha" => 50);
$myPicture->drawGradientArea(0, 0, 700, 230, DIRECTION_VERTICAL, $Settings);