@@ -24,7 +24,7 @@ |
||
24 | 24 | require_once __DIR__ . '/../../../src/Bootstrap.php'; |
25 | 25 | |
26 | 26 | $inputFileName = './sampleData/example1.xls'; |
27 | -echo 'Loading file ',pathinfo($inputFileName, PATHINFO_BASENAME),' using IOFactory to identify the format<br />'; |
|
27 | +echo 'Loading file ', pathinfo($inputFileName, PATHINFO_BASENAME), ' using IOFactory to identify the format<br />'; |
|
28 | 28 | $spreadsheet = IOFactory::load($inputFileName); |
29 | 29 | |
30 | 30 | echo '<hr />'; |
@@ -31,18 +31,18 @@ |
||
31 | 31 | $inputFileName = './sampleData/example1.xls'; |
32 | 32 | $sheetnames = ['Data Sheet #1', 'Data Sheet #3']; |
33 | 33 | |
34 | -echo 'Loading file ',pathinfo($inputFileName, PATHINFO_BASENAME),' using IOFactory with a defined reader type of ',$inputFileType,'<br />'; |
|
34 | +echo 'Loading file ', pathinfo($inputFileName, PATHINFO_BASENAME), ' using IOFactory with a defined reader type of ', $inputFileType, '<br />'; |
|
35 | 35 | $reader = IOFactory::createReader($inputFileType); |
36 | -echo 'Loading Sheet',((count($sheetnames) == 1) ? '' : 's'),' "',implode('" and "', $sheetnames),'" only<br />'; |
|
36 | +echo 'Loading Sheet', ((count($sheetnames) == 1) ? '' : 's'), ' "', implode('" and "', $sheetnames), '" only<br />'; |
|
37 | 37 | $reader->setLoadSheetsOnly($sheetnames); |
38 | 38 | $spreadsheet = $reader->load($inputFileName); |
39 | 39 | |
40 | 40 | echo '<hr />'; |
41 | 41 | |
42 | -echo $spreadsheet->getSheetCount(),' worksheet',(($spreadsheet->getSheetCount() == 1) ? '' : 's'),' loaded<br /><br />'; |
|
42 | +echo $spreadsheet->getSheetCount(), ' worksheet', (($spreadsheet->getSheetCount() == 1) ? '' : 's'), ' loaded<br /><br />'; |
|
43 | 43 | $loadedSheetNames = $spreadsheet->getSheetNames(); |
44 | 44 | foreach ($loadedSheetNames as $sheetIndex => $loadedSheetName) { |
45 | - echo $sheetIndex,' -> ',$loadedSheetName,'<br />'; |
|
45 | + echo $sheetIndex, ' -> ', $loadedSheetName, '<br />'; |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | ?> |
@@ -30,7 +30,7 @@ |
||
30 | 30 | // $inputFileType = 'Gnumeric'; |
31 | 31 | $inputFileName = './sampleData/example1.xls'; |
32 | 32 | |
33 | -echo 'Loading file ',pathinfo($inputFileName, PATHINFO_BASENAME),' information using IOFactory with a defined reader type of ',$inputFileType,'<br />'; |
|
33 | +echo 'Loading file ', pathinfo($inputFileName, PATHINFO_BASENAME), ' information using IOFactory with a defined reader type of ', $inputFileType, '<br />'; |
|
34 | 34 | |
35 | 35 | $reader = IOFactory::createReader($inputFileType); |
36 | 36 | $worksheetNames = $reader->listWorksheetNames($inputFileName); |
@@ -30,7 +30,7 @@ |
||
30 | 30 | // $inputFileType = 'Gnumeric'; |
31 | 31 | $inputFileName = './sampleData/example1.xls'; |
32 | 32 | |
33 | -echo 'Loading file ',pathinfo($inputFileName, PATHINFO_BASENAME),' using IOFactory with a defined reader type of ',$inputFileType,'<br />'; |
|
33 | +echo 'Loading file ', pathinfo($inputFileName, PATHINFO_BASENAME), ' using IOFactory with a defined reader type of ', $inputFileType, '<br />'; |
|
34 | 34 | $reader = IOFactory::createReader($inputFileType); |
35 | 35 | echo 'Turning Formatting off for Load<br />'; |
36 | 36 | $reader->setReadDataOnly(true); |
@@ -30,7 +30,7 @@ |
||
30 | 30 | // $inputFileType = 'Gnumeric'; |
31 | 31 | $inputFileName = './sampleData/example1.xls'; |
32 | 32 | |
33 | -echo 'Loading file ',pathinfo($inputFileName, PATHINFO_BASENAME),' using IOFactory with a defined reader type of ',$inputFileType,'<br />'; |
|
33 | +echo 'Loading file ', pathinfo($inputFileName, PATHINFO_BASENAME), ' using IOFactory with a defined reader type of ', $inputFileType, '<br />'; |
|
34 | 34 | $reader = IOFactory::createReader($inputFileType); |
35 | 35 | echo 'Loading all WorkSheets<br />'; |
36 | 36 | $reader->setLoadAllSheets(); |
@@ -24,7 +24,7 @@ |
||
24 | 24 | require_once __DIR__ . '/../../../src/Bootstrap.php'; |
25 | 25 | |
26 | 26 | $inputFileName = './sampleData/example_1.xls'; |
27 | -echo 'Loading file ',pathinfo($inputFileName, PATHINFO_BASENAME),' using IOFactory to identify the format<br />'; |
|
27 | +echo 'Loading file ', pathinfo($inputFileName, PATHINFO_BASENAME), ' using IOFactory to identify the format<br />'; |
|
28 | 28 | try { |
29 | 29 | $spreadsheet = IOFactory::load($inputFileName); |
30 | 30 | } catch (\InvalidArgumentException $e) { |
@@ -60,9 +60,9 @@ |
||
60 | 60 | |
61 | 61 | $filterSubset = new MyReadFilter(9, 15, range('G', 'K')); |
62 | 62 | |
63 | -echo 'Loading file ',pathinfo($inputFileName, PATHINFO_BASENAME),' using IOFactory with a defined reader type of ',$inputFileType,'<br />'; |
|
63 | +echo 'Loading file ', pathinfo($inputFileName, PATHINFO_BASENAME), ' using IOFactory with a defined reader type of ', $inputFileType, '<br />'; |
|
64 | 64 | $reader = IOFactory::createReader($inputFileType); |
65 | -echo 'Loading Sheet "',$sheetname,'" only<br />'; |
|
65 | +echo 'Loading Sheet "', $sheetname, '" only<br />'; |
|
66 | 66 | $reader->setLoadSheetsOnly($sheetname); |
67 | 67 | echo 'Loading Sheet using configurable filter<br />'; |
68 | 68 | $reader->setReadFilter($filterSubset); |
@@ -62,6 +62,10 @@ discard block |
||
62 | 62 | return $testDate->format('d') == 1; |
63 | 63 | } |
64 | 64 | |
65 | + /** |
|
66 | + * @param integer $frequency |
|
67 | + * @param boolean $next |
|
68 | + */ |
|
65 | 69 | private static function couponFirstPeriodDate($settlement, $maturity, $frequency, $next) |
66 | 70 | { |
67 | 71 | $months = 12 / $frequency; |
@@ -83,6 +87,9 @@ discard block |
||
83 | 87 | return Date::PHPToExcel($result); |
84 | 88 | } |
85 | 89 | |
90 | + /** |
|
91 | + * @param integer $frequency |
|
92 | + */ |
|
86 | 93 | private static function isValidFrequency($frequency) |
87 | 94 | { |
88 | 95 | if (($frequency == 1) || ($frequency == 2) || ($frequency == 4)) { |
@@ -161,7 +168,7 @@ discard block |
||
161 | 168 | * The security settlement date is the date after the issue date |
162 | 169 | * when the security is traded to the buyer. |
163 | 170 | * @param float $rate the security's annual coupon rate |
164 | - * @param float $par The security's par value. |
|
171 | + * @param integer $par The security's par value. |
|
165 | 172 | * If you omit par, ACCRINT uses $1,000. |
166 | 173 | * @param int $frequency the number of coupon payments per year. |
167 | 174 | * Valid frequency values are: |
@@ -234,8 +241,8 @@ discard block |
||
234 | 241 | * @param mixed $issue |
235 | 242 | * @param mixed $settlement |
236 | 243 | * @param mixed $rate |
237 | - * @param mixed $par |
|
238 | - * @param mixed $basis |
|
244 | + * @param integer $par |
|
245 | + * @param integer $basis |
|
239 | 246 | * |
240 | 247 | * @return float |
241 | 248 | */ |
@@ -301,7 +308,7 @@ discard block |
||
301 | 308 | * @param mixed $salvage |
302 | 309 | * @param mixed $period |
303 | 310 | * @param mixed $rate |
304 | - * @param mixed $basis |
|
311 | + * @param integer $basis |
|
305 | 312 | * |
306 | 313 | * @return float |
307 | 314 | */ |
@@ -386,7 +393,7 @@ discard block |
||
386 | 393 | * @param mixed $salvage |
387 | 394 | * @param mixed $period |
388 | 395 | * @param mixed $rate |
389 | - * @param mixed $basis |
|
396 | + * @param integer $basis |
|
390 | 397 | * |
391 | 398 | * @return float |
392 | 399 | */ |
@@ -456,8 +463,8 @@ discard block |
||
456 | 463 | * 4 European 30/360 |
457 | 464 | * @param mixed $settlement |
458 | 465 | * @param mixed $maturity |
459 | - * @param mixed $frequency |
|
460 | - * @param mixed $basis |
|
466 | + * @param integer $frequency |
|
467 | + * @param integer $basis |
|
461 | 468 | * |
462 | 469 | * @return float |
463 | 470 | */ |
@@ -520,7 +527,7 @@ discard block |
||
520 | 527 | * @param int $frequency |
521 | 528 | * @param mixed $settlement |
522 | 529 | * @param mixed $maturity |
523 | - * @param mixed $basis |
|
530 | + * @param integer $basis |
|
524 | 531 | * |
525 | 532 | * @return float |
526 | 533 | */ |
@@ -599,8 +606,8 @@ discard block |
||
599 | 606 | * 4 European 30/360 |
600 | 607 | * @param mixed $settlement |
601 | 608 | * @param mixed $maturity |
602 | - * @param mixed $frequency |
|
603 | - * @param mixed $basis |
|
609 | + * @param integer $frequency |
|
610 | + * @param integer $basis |
|
604 | 611 | * |
605 | 612 | * @return float |
606 | 613 | */ |
@@ -663,7 +670,7 @@ discard block |
||
663 | 670 | * @param mixed $settlement |
664 | 671 | * @param mixed $maturity |
665 | 672 | * @param mixed $frequency |
666 | - * @param mixed $basis |
|
673 | + * @param integer $basis |
|
667 | 674 | * |
668 | 675 | * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object, |
669 | 676 | * depending on the value of the ReturnDateType flag |
@@ -724,8 +731,8 @@ discard block |
||
724 | 731 | * 4 European 30/360 |
725 | 732 | * @param mixed $settlement |
726 | 733 | * @param mixed $maturity |
727 | - * @param mixed $frequency |
|
728 | - * @param mixed $basis |
|
734 | + * @param integer $frequency |
|
735 | + * @param integer $basis |
|
729 | 736 | * |
730 | 737 | * @return int |
731 | 738 | */ |
@@ -801,7 +808,7 @@ discard block |
||
801 | 808 | * @param mixed $settlement |
802 | 809 | * @param mixed $maturity |
803 | 810 | * @param mixed $frequency |
804 | - * @param mixed $basis |
|
811 | + * @param integer $basis |
|
805 | 812 | * |
806 | 813 | * @return mixed Excel date/time serial value, PHP date/time serial value or PHP date/time object, |
807 | 814 | * depending on the value of the ReturnDateType flag |
@@ -953,7 +960,7 @@ discard block |
||
953 | 960 | * @param mixed $salvage |
954 | 961 | * @param mixed $life |
955 | 962 | * @param mixed $period |
956 | - * @param mixed $month |
|
963 | + * @param integer $month |
|
957 | 964 | * |
958 | 965 | * @return float |
959 | 966 | */ |
@@ -1028,7 +1035,7 @@ discard block |
||
1028 | 1035 | * @param mixed $salvage |
1029 | 1036 | * @param mixed $life |
1030 | 1037 | * @param mixed $period |
1031 | - * @param mixed $factor |
|
1038 | + * @param double $factor |
|
1032 | 1039 | * |
1033 | 1040 | * @return float |
1034 | 1041 | */ |
@@ -1097,7 +1104,7 @@ discard block |
||
1097 | 1104 | * @param mixed $maturity |
1098 | 1105 | * @param mixed $price |
1099 | 1106 | * @param mixed $redemption |
1100 | - * @param mixed $basis |
|
1107 | + * @param integer $basis |
|
1101 | 1108 | * |
1102 | 1109 | * @return float |
1103 | 1110 | */ |
@@ -1216,7 +1223,7 @@ discard block |
||
1216 | 1223 | * |
1217 | 1224 | * @category Financial Functions |
1218 | 1225 | * |
1219 | - * @param float $nominal_rate Nominal interest rate |
|
1226 | + * @param integer $nominal_rate Nominal interest rate |
|
1220 | 1227 | * @param int $npery Number of compounding payments per year |
1221 | 1228 | * |
1222 | 1229 | * @return float |
@@ -1244,12 +1251,12 @@ discard block |
||
1244 | 1251 | * |
1245 | 1252 | * @category Financial Functions |
1246 | 1253 | * |
1247 | - * @param float $rate The interest rate per period |
|
1254 | + * @param integer $rate The interest rate per period |
|
1248 | 1255 | * @param int $nper Total number of payment periods in an annuity |
1249 | - * @param float $pmt The payment made each period: it cannot change over the |
|
1256 | + * @param integer $pmt The payment made each period: it cannot change over the |
|
1250 | 1257 | * life of the annuity. Typically, pmt contains principal |
1251 | 1258 | * and interest but no other fees or taxes. |
1252 | - * @param float $pv present Value, or the lump-sum amount that a series of |
|
1259 | + * @param integer $pv present Value, or the lump-sum amount that a series of |
|
1253 | 1260 | * future payments is worth right now |
1254 | 1261 | * @param int $type A number 0 or 1 and indicates when payments are due: |
1255 | 1262 | * 0 or omitted At the end of the period. |
@@ -1367,7 +1374,7 @@ discard block |
||
1367 | 1374 | * @param int $per Period for which we want to find the interest |
1368 | 1375 | * @param int $nper Number of periods |
1369 | 1376 | * @param float $pv Present Value |
1370 | - * @param float $fv Future Value |
|
1377 | + * @param integer $fv Future Value |
|
1371 | 1378 | * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period |
1372 | 1379 | * |
1373 | 1380 | * @return float |
@@ -1562,7 +1569,7 @@ discard block |
||
1562 | 1569 | * |
1563 | 1570 | * Returns the nominal interest rate given the effective rate and the number of compounding payments per year. |
1564 | 1571 | * |
1565 | - * @param float $effect_rate Effective interest rate |
|
1572 | + * @param integer $effect_rate Effective interest rate |
|
1566 | 1573 | * @param int $npery Number of compounding payments per year |
1567 | 1574 | * |
1568 | 1575 | * @return float |
@@ -1586,10 +1593,10 @@ discard block |
||
1586 | 1593 | * |
1587 | 1594 | * Returns the number of periods for a cash flow with constant periodic payments (annuities), and interest rate. |
1588 | 1595 | * |
1589 | - * @param float $rate Interest rate per period |
|
1596 | + * @param integer $rate Interest rate per period |
|
1590 | 1597 | * @param int $pmt Periodic payment (annuity) |
1591 | - * @param float $pv Present Value |
|
1592 | - * @param float $fv Future Value |
|
1598 | + * @param integer $pv Present Value |
|
1599 | + * @param integer $fv Future Value |
|
1593 | 1600 | * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period |
1594 | 1601 | * |
1595 | 1602 | * @return float |
@@ -1655,10 +1662,10 @@ discard block |
||
1655 | 1662 | * |
1656 | 1663 | * Returns the constant payment (annuity) for a cash flow with a constant interest rate. |
1657 | 1664 | * |
1658 | - * @param float $rate Interest rate per period |
|
1665 | + * @param integer $rate Interest rate per period |
|
1659 | 1666 | * @param int $nper Number of periods |
1660 | - * @param float $pv Present Value |
|
1661 | - * @param float $fv Future Value |
|
1667 | + * @param integer $pv Present Value |
|
1668 | + * @param integer $fv Future Value |
|
1662 | 1669 | * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period |
1663 | 1670 | * |
1664 | 1671 | * @return float |
@@ -1693,7 +1700,7 @@ discard block |
||
1693 | 1700 | * @param int $per Period for which we want to find the interest |
1694 | 1701 | * @param int $nper Number of periods |
1695 | 1702 | * @param float $pv Present Value |
1696 | - * @param float $fv Future Value |
|
1703 | + * @param integer $fv Future Value |
|
1697 | 1704 | * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period |
1698 | 1705 | * |
1699 | 1706 | * @return float |
@@ -1783,7 +1790,7 @@ discard block |
||
1783 | 1790 | * @param mixed $maturity |
1784 | 1791 | * @param mixed $discount |
1785 | 1792 | * @param mixed $redemption |
1786 | - * @param mixed $basis |
|
1793 | + * @param integer $basis |
|
1787 | 1794 | * |
1788 | 1795 | * @return float |
1789 | 1796 | */ |
@@ -1835,7 +1842,7 @@ discard block |
||
1835 | 1842 | * @param mixed $issue |
1836 | 1843 | * @param mixed $rate |
1837 | 1844 | * @param mixed $yield |
1838 | - * @param mixed $basis |
|
1845 | + * @param integer $basis |
|
1839 | 1846 | * |
1840 | 1847 | * @return float |
1841 | 1848 | */ |
@@ -1889,10 +1896,10 @@ discard block |
||
1889 | 1896 | * |
1890 | 1897 | * Returns the Present Value of a cash flow with constant payments and interest rate (annuities). |
1891 | 1898 | * |
1892 | - * @param float $rate Interest rate per period |
|
1899 | + * @param integer $rate Interest rate per period |
|
1893 | 1900 | * @param int $nper Number of periods |
1894 | - * @param float $pmt Periodic payment (annuity) |
|
1895 | - * @param float $fv Future Value |
|
1901 | + * @param integer $pmt Periodic payment (annuity) |
|
1902 | + * @param integer $fv Future Value |
|
1896 | 1903 | * @param int $type Payment type: 0 = at the end of each period, 1 = at the beginning of each period |
1897 | 1904 | * |
1898 | 1905 | * @return float |
@@ -1949,9 +1956,9 @@ discard block |
||
1949 | 1956 | * @param mixed $nper |
1950 | 1957 | * @param mixed $pmt |
1951 | 1958 | * @param mixed $pv |
1952 | - * @param mixed $fv |
|
1953 | - * @param mixed $type |
|
1954 | - * @param mixed $guess |
|
1959 | + * @param double $fv |
|
1960 | + * @param integer $type |
|
1961 | + * @param double $guess |
|
1955 | 1962 | * |
1956 | 1963 | * @return float |
1957 | 1964 | **/ |
@@ -2020,7 +2027,7 @@ discard block |
||
2020 | 2027 | * @param mixed $maturity |
2021 | 2028 | * @param mixed $investment |
2022 | 2029 | * @param mixed $discount |
2023 | - * @param mixed $basis |
|
2030 | + * @param integer $basis |
|
2024 | 2031 | * |
2025 | 2032 | * @return float |
2026 | 2033 | */ |
@@ -2390,7 +2397,7 @@ discard block |
||
2390 | 2397 | * @param mixed $maturity |
2391 | 2398 | * @param mixed $price |
2392 | 2399 | * @param mixed $redemption |
2393 | - * @param mixed $basis |
|
2400 | + * @param integer $basis |
|
2394 | 2401 | * |
2395 | 2402 | * @return float |
2396 | 2403 | */ |
@@ -2447,7 +2454,7 @@ discard block |
||
2447 | 2454 | * @param mixed $issue |
2448 | 2455 | * @param mixed $rate |
2449 | 2456 | * @param mixed $price |
2450 | - * @param mixed $basis |
|
2457 | + * @param integer $basis |
|
2451 | 2458 | * |
2452 | 2459 | * @return float |
2453 | 2460 | */ |
@@ -60,6 +60,9 @@ discard block |
||
60 | 60 | |
61 | 61 | private static $plotMark = 0; |
62 | 62 | |
63 | + /** |
|
64 | + * @param string $markerID |
|
65 | + */ |
|
63 | 66 | private function formatPointMarker($seriesPlot, $markerID) |
64 | 67 | { |
65 | 68 | $plotMarkKeys = array_keys(self::$markSet); |
@@ -87,6 +90,9 @@ discard block |
||
87 | 90 | return $seriesPlot; |
88 | 91 | } |
89 | 92 | |
93 | + /** |
|
94 | + * @param integer $labelCount |
|
95 | + */ |
|
90 | 96 | private function formatDataSetLabels($groupID, $datasetLabels, $labelCount, $rotation = '') |
91 | 97 | { |
92 | 98 | $datasetLabelFormatCode = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotCategoryByIndex(0)->getFormatCode(); |
@@ -116,6 +122,9 @@ discard block |
||
116 | 122 | return $datasetLabels; |
117 | 123 | } |
118 | 124 | |
125 | + /** |
|
126 | + * @param integer $seriesCount |
|
127 | + */ |
|
119 | 128 | private function percentageSumCalculation($groupID, $seriesCount) |
120 | 129 | { |
121 | 130 | // Adjust our values to a percentage value across all series in the group |
@@ -146,6 +155,9 @@ discard block |
||
146 | 155 | return $dataValues; |
147 | 156 | } |
148 | 157 | |
158 | + /** |
|
159 | + * @param \PhpOffice\PhpSpreadsheet\Chart\Title $captionElement |
|
160 | + */ |
|
149 | 161 | private function getCaption($captionElement) |
150 | 162 | { |
151 | 163 | // Read any caption |
@@ -253,6 +265,9 @@ discard block |
||
253 | 265 | $this->renderTitle(); |
254 | 266 | } |
255 | 267 | |
268 | + /** |
|
269 | + * @param integer $groupID |
|
270 | + */ |
|
256 | 271 | private function renderPlotLine($groupID, $filled = false, $combination = false, $dimensions = '2d') |
257 | 272 | { |
258 | 273 | $grouping = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotGrouping(); |
@@ -316,6 +331,9 @@ discard block |
||
316 | 331 | $this->graph->Add($groupPlot); |
317 | 332 | } |
318 | 333 | |
334 | + /** |
|
335 | + * @param integer $groupID |
|
336 | + */ |
|
319 | 337 | private function renderPlotBar($groupID, $dimensions = '2d') |
320 | 338 | { |
321 | 339 | $rotation = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotDirection(); |
@@ -400,6 +418,10 @@ discard block |
||
400 | 418 | $this->graph->Add($groupPlot); |
401 | 419 | } |
402 | 420 | |
421 | + /** |
|
422 | + * @param integer $groupID |
|
423 | + * @param boolean $bubble |
|
424 | + */ |
|
403 | 425 | private function renderPlotScatter($groupID, $bubble) |
404 | 426 | { |
405 | 427 | $grouping = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotGrouping(); |
@@ -445,6 +467,9 @@ discard block |
||
445 | 467 | } |
446 | 468 | } |
447 | 469 | |
470 | + /** |
|
471 | + * @param integer $groupID |
|
472 | + */ |
|
448 | 473 | private function renderPlotRadar($groupID) |
449 | 474 | { |
450 | 475 | $radarStyle = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotStyle(); |
@@ -483,6 +508,9 @@ discard block |
||
483 | 508 | } |
484 | 509 | } |
485 | 510 | |
511 | + /** |
|
512 | + * @param integer $groupID |
|
513 | + */ |
|
486 | 514 | private function renderPlotContour($groupID) |
487 | 515 | { |
488 | 516 | $contourStyle = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotStyle(); |
@@ -503,6 +531,9 @@ discard block |
||
503 | 531 | $this->graph->Add($seriesPlot); |
504 | 532 | } |
505 | 533 | |
534 | + /** |
|
535 | + * @param integer $groupID |
|
536 | + */ |
|
506 | 537 | private function renderPlotStock($groupID) |
507 | 538 | { |
508 | 539 | $seriesCount = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotSeriesCount(); |
@@ -542,6 +573,9 @@ discard block |
||
542 | 573 | $this->graph->Add($seriesPlot); |
543 | 574 | } |
544 | 575 | |
576 | + /** |
|
577 | + * @param integer $groupCount |
|
578 | + */ |
|
545 | 579 | private function renderAreaChart($groupCount, $dimensions = '2d') |
546 | 580 | { |
547 | 581 | require_once Settings::getChartRendererPath() . 'jpgraph_line.php'; |
@@ -553,6 +587,9 @@ discard block |
||
553 | 587 | } |
554 | 588 | } |
555 | 589 | |
590 | + /** |
|
591 | + * @param integer $groupCount |
|
592 | + */ |
|
556 | 593 | private function renderLineChart($groupCount, $dimensions = '2d') |
557 | 594 | { |
558 | 595 | require_once Settings::getChartRendererPath() . 'jpgraph_line.php'; |
@@ -564,6 +601,9 @@ discard block |
||
564 | 601 | } |
565 | 602 | } |
566 | 603 | |
604 | + /** |
|
605 | + * @param integer $groupCount |
|
606 | + */ |
|
567 | 607 | private function renderBarChart($groupCount, $dimensions = '2d') |
568 | 608 | { |
569 | 609 | require_once Settings::getChartRendererPath() . 'jpgraph_bar.php'; |
@@ -575,6 +615,9 @@ discard block |
||
575 | 615 | } |
576 | 616 | } |
577 | 617 | |
618 | + /** |
|
619 | + * @param integer $groupCount |
|
620 | + */ |
|
578 | 621 | private function renderScatterChart($groupCount) |
579 | 622 | { |
580 | 623 | require_once Settings::getChartRendererPath() . 'jpgraph_scatter.php'; |
@@ -588,6 +631,9 @@ discard block |
||
588 | 631 | } |
589 | 632 | } |
590 | 633 | |
634 | + /** |
|
635 | + * @param integer $groupCount |
|
636 | + */ |
|
591 | 637 | private function renderBubbleChart($groupCount) |
592 | 638 | { |
593 | 639 | require_once Settings::getChartRendererPath() . 'jpgraph_scatter.php'; |
@@ -599,6 +645,9 @@ discard block |
||
599 | 645 | } |
600 | 646 | } |
601 | 647 | |
648 | + /** |
|
649 | + * @param integer $groupCount |
|
650 | + */ |
|
602 | 651 | private function renderPieChart($groupCount, $dimensions = '2d', $doughnut = false, $multiplePlots = false) |
603 | 652 | { |
604 | 653 | require_once Settings::getChartRendererPath() . 'jpgraph_pie.php'; |
@@ -675,6 +724,9 @@ discard block |
||
675 | 724 | } |
676 | 725 | } |
677 | 726 | |
727 | + /** |
|
728 | + * @param integer $groupCount |
|
729 | + */ |
|
678 | 730 | private function renderRadarChart($groupCount) |
679 | 731 | { |
680 | 732 | require_once Settings::getChartRendererPath() . 'jpgraph_radar.php'; |
@@ -686,6 +738,9 @@ discard block |
||
686 | 738 | } |
687 | 739 | } |
688 | 740 | |
741 | + /** |
|
742 | + * @param integer $groupCount |
|
743 | + */ |
|
689 | 744 | private function renderStockChart($groupCount) |
690 | 745 | { |
691 | 746 | require_once Settings::getChartRendererPath() . 'jpgraph_stock.php'; |
@@ -697,6 +752,10 @@ discard block |
||
697 | 752 | } |
698 | 753 | } |
699 | 754 | |
755 | + /** |
|
756 | + * @param integer $groupCount |
|
757 | + * @param string|null $dimensions |
|
758 | + */ |
|
700 | 759 | private function renderContourChart($groupCount, $dimensions) |
701 | 760 | { |
702 | 761 | require_once Settings::getChartRendererPath() . 'jpgraph_contour.php'; |
@@ -708,6 +767,9 @@ discard block |
||
708 | 767 | } |
709 | 768 | } |
710 | 769 | |
770 | + /** |
|
771 | + * @param integer $groupCount |
|
772 | + */ |
|
711 | 773 | private function renderCombinationChart($groupCount, $dimensions, $outputDestination) |
712 | 774 | { |
713 | 775 | require_once Settings::getChartRendererPath() . 'jpgraph_line.php'; |