| OLD | NEW |
| 1 | 1 |
| 2 function stats(data, config) { | 2 function stats(data, config) { |
| 3 data.stats = {}; | 3 data.stats = {}; |
| 4 if (typeof data.datasets == 'undefined') { // Pie structure; | 4 if (typeof data.datasets == 'undefined') { // Pie structure; |
| 5 PSbasic(data); | 5 PSbasic(data); |
| 6 } else { // line structure; | 6 } else { // line structure; |
| 7 LSbasic(data); | 7 LSbasic(data); |
| 8 Linear_Regression(data); | 8 Linear_Regression(data); |
| 9 } | 9 } |
| 10 replace_stats(data, config); | 10 replace_stats(data, config); |
| (...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 810 found = true; | 810 found = true; |
| 811 } | 811 } |
| 812 } | 812 } |
| 813 } | 813 } |
| 814 } | 814 } |
| 815 return { | 815 return { |
| 816 found: found, | 816 found: found, |
| 817 resval: resval | 817 resval: resval |
| 818 }; | 818 }; |
| 819 }; | 819 }; |
| OLD | NEW |