Changeset 95 for trunk/Graph.php
- Timestamp:
- Dec 6, 2021, 11:33:48 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Graph.php
r92 r95 5 5 class MeasureGraph 6 6 { 7 var$Database;8 var$FontSize;9 var$FontFileNameName;10 var$ValueToImageHeigthCoefficient;11 var$DefaultWidth;12 var$DefaultHeight;7 public Database $Database; 8 public int $FontSize; 9 public string $FontFileNameName; 10 public float $ValueToImageHeigthCoefficient; 11 public int $DefaultWidth; 12 public int $DefaultHeight; 13 13 14 14 function __construct(Database $Database) … … 22 22 } 23 23 24 function Render() 24 function Render(): void 25 25 { 26 26 global $Config; … … 138 138 $TimeRange = $EndTime - $StartTime; 139 139 $TimeMarksIndex = 0; 140 while ((($TimeRange / $TimeMarks[$TimeMarksIndex]) > 1) and ($TimeMarksIndex < (count($TimeMarks) - 1))) 140 while ((($TimeRange / $TimeMarks[$TimeMarksIndex]) > 1) and ($TimeMarksIndex < (count($TimeMarks) - 1))) 141 141 $TimeMarksIndex += 1; 142 142 if ($TimeMarksIndex < 2) $TimeMarksIndex = 2;
Note:
See TracChangeset
for help on using the changeset viewer.