Legend:
- Unmodified
- Added
- Removed
-
graph.php
r6 r13 171 171 $Y = $Height - 1 - ($VerticalLinesDistance * $I); 172 172 //$Y = $Height - 1 - ($VerticalLinesDistance * $I / ($MaxValue - $MinValue) * $K * $Height); 173 $Text = round(($I * $VerticalLinesDistance / $Height / $K * ($MaxValue - $MinValue) + $MinValue));173 $Text = AddPrefixMultipliers(round(($I * $VerticalLinesDistance / $Height / $K * ($MaxValue - $MinValue) + $MinValue)), $Measure['Unit'], 3); 174 174 $BoundBox = imagettfbbox($FontSize, 0, $FontFile, $Text); 175 175 if(($Y - ($BoundBox[5] - $BoundBox[1]) / 2) > 10) … … 178 178 $GenerationTime = floor((GetMicrotime() - $StopWatchStart) * 1000 ) / 1000; 179 179 180 imagettftext($Image, $FontSize, 0, $Width-94, 14, $Red, $FontFile, "Max. ". $MaxValue.' '.$Measure['Unit']);181 imagettftext($Image, $FontSize, 0, $Width-194, 14, $Green, $FontFile, "Avg. ". $AvgValue.' '.$Measure['Unit']);182 imagettftext($Image, $FontSize, 0, $Width-294, 14, $Blue, $FontFile, "Min. ". $MinValue.' '.$Measure['Unit']);180 imagettftext($Image, $FontSize, 0, $Width-94, 14, $Red, $FontFile, "Max. ".AddPrefixMultipliers($MaxValue, $Measure['Unit'])); 181 imagettftext($Image, $FontSize, 0, $Width-194, 14, $Green, $FontFile, "Avg. ".AddPrefixMultipliers($AvgValue, $Measure['Unit'])); 182 imagettftext($Image, $FontSize, 0, $Width-294, 14, $Blue, $FontFile, "Min. ".AddPrefixMultipliers($MinValue, $Measure['Unit'])); 183 183 imagestring($Image, 2, 50, 20, 'Vygenerováno za '.$GenerationTime.' sekund', $Black); 184 184 //imagestring($Image, 2, 50, 30, 'Level: '.$Level, $Black);
Note:
See TracChangeset
for help on using the changeset viewer.