Changeset 52 for branches/old/graph.php


Ignore:
Timestamp:
Feb 20, 2015, 9:31:53 AM (9 years ago)
Author:
chronos
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/old/graph.php

    r51 r52  
    161161    $Y = $Height - 1 - ($VerticalLinesDistance * $I);
    162162    //$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);
    164164    $BoundBox = imagettfbbox($FontSize, 0, $FontFile, $Text);
    165165    if(($Y - ($BoundBox[5] - $BoundBox[1]) / 2) > 10)
     
    169169
    170170  $Left = $Width - 10;
    171   $Text = "    Max. ".AddPrefixMultipliers($MaxValue, $Measure['Unit']);
     171  $Text = "    Max. ".$PrefixMultiplier->Add($MaxValue, $Measure['Unit']);
    172172  $BoundingBox = imagettfbbox($FontSize, 0, $FontFile, $Text);
    173173  $Left -= ($BoundingBox[2] - $BoundingBox[0]);
    174174  imagettftext($Image, $FontSize, 0, $Left, 14, $Red, $FontFile, $Text);
    175175
    176   $Text = "    Avg.  ".AddPrefixMultipliers($AvgValue, $Measure['Unit'], 4);
     176  $Text = "    Avg.  ".$PrefixMultiplier->Add($AvgValue, $Measure['Unit'], 4);
    177177  $BoundingBox = imagettfbbox($FontSize, 0, $FontFile, $Text);
    178178  $Left -= ($BoundingBox[2] - $BoundingBox[0]);
    179179  imagettftext($Image, $FontSize, 0, $Left, 14, $Green, $FontFile, $Text);
    180180
    181   $Text = "    Min.  ".AddPrefixMultipliers($MinValue, $Measure['Unit']);
     181  $Text = "    Min.  ".$PrefixMultiplier->Add($MinValue, $Measure['Unit']);
    182182  $BoundingBox = imagettfbbox($FontSize, 0, $FontFile, $Text);
    183183  $Left -= ($BoundingBox[2] - $BoundingBox[0]);
Note: See TracChangeset for help on using the changeset viewer.