From 881bd0909febd4feab6144b8547e7881808afba4 Mon Sep 17 00:00:00 2001 From: Martynas Mickevicius Date: Thu, 8 Jul 2010 13:47:29 +0300 Subject: [PATCH] added value skip option to the radar chart in pChar.class --- libraries/chart/pChart/pChart.class | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libraries/chart/pChart/pChart.class b/libraries/chart/pChart/pChart.class index 947f3ef6f..c5f739535 100644 --- a/libraries/chart/pChart/pChart.class +++ b/libraries/chart/pChart/pChart.class @@ -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;