added value skip option to the radar chart in pChar.class

This commit is contained in:
Martynas Mickevicius
2010-07-08 13:47:29 +03:00
parent dfe34ad8d4
commit 881bd0909f

View File

@@ -2088,7 +2088,7 @@
}
/* This function draw radar axis centered on the graph area */
function drawRadarAxis($Data,$DataDescription,$Mosaic=TRUE,$BorderOffset=10,$A_R=60,$A_G=60,$A_B=60,$S_R=200,$S_G=200,$S_B=200,$MaxValue=-1)
function drawRadarAxis($Data,$DataDescription,$Mosaic=TRUE,$BorderOffset=10,$A_R=60,$A_G=60,$A_B=60,$S_R=200,$S_G=200,$S_B=200,$MaxValue=-1,$valueMod=1)
{
/* Validate the Data and DataDescription array */
$this->validateDataDescription("drawRadarAxis",$DataDescription);
@@ -2204,6 +2204,9 @@
/* Write the values */
for ( $t=1; $t<=$MaxValue; $t++)
{
if ($t % $valueMod != 0)
{ continue; }
$TRadius = ( $Radius / $MaxValue ) * $t;
$Angle = -90 + 360 / $Points;