Changeset 52 for branches/old/graph.php
- Timestamp:
- Feb 20, 2015, 9:31:53 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/old/graph.php
r51 r52 161 161 $Y = $Height - 1 - ($VerticalLinesDistance * $I); 162 162 //$Y = $Height - 1 - ($VerticalLinesDistance * $I / ($MaxValue - $MinValue) * $K * $Height); 163 $Text = AddPrefixMultipliers(round(($I * $VerticalLinesDistance / $Height / $K * ($MaxValue - $MinValue) + $MinValue)), $Measure['Unit'], 3);163 $Text = $PrefixMultiplier->Add(round(($I * $VerticalLinesDistance / $Height / $K * ($MaxValue - $MinValue) + $MinValue)), $Measure['Unit'], 3); 164 164 $BoundBox = imagettfbbox($FontSize, 0, $FontFile, $Text); 165 165 if(($Y - ($BoundBox[5] - $BoundBox[1]) / 2) > 10) … … 169 169 170 170 $Left = $Width - 10; 171 $Text = " Max. ". AddPrefixMultipliers($MaxValue, $Measure['Unit']);171 $Text = " Max. ".$PrefixMultiplier->Add($MaxValue, $Measure['Unit']); 172 172 $BoundingBox = imagettfbbox($FontSize, 0, $FontFile, $Text); 173 173 $Left -= ($BoundingBox[2] - $BoundingBox[0]); 174 174 imagettftext($Image, $FontSize, 0, $Left, 14, $Red, $FontFile, $Text); 175 175 176 $Text = " Avg. ". AddPrefixMultipliers($AvgValue, $Measure['Unit'], 4);176 $Text = " Avg. ".$PrefixMultiplier->Add($AvgValue, $Measure['Unit'], 4); 177 177 $BoundingBox = imagettfbbox($FontSize, 0, $FontFile, $Text); 178 178 $Left -= ($BoundingBox[2] - $BoundingBox[0]); 179 179 imagettftext($Image, $FontSize, 0, $Left, 14, $Green, $FontFile, $Text); 180 180 181 $Text = " Min. ". AddPrefixMultipliers($MinValue, $Measure['Unit']);181 $Text = " Min. ".$PrefixMultiplier->Add($MinValue, $Measure['Unit']); 182 182 $BoundingBox = imagettfbbox($FontSize, 0, $FontFile, $Text); 183 183 $Left -= ($BoundingBox[2] - $BoundingBox[0]);
Note:
See TracChangeset
for help on using the changeset viewer.