|
Last change
on this file since e4c61dd was e4c61dd, checked in by istevanoska <ilinastevanoska@…>, 6 months ago |
|
Prototype 1.1
|
-
Property mode
set to
100644
|
|
File size:
322 bytes
|
| Line | |
|---|
| 1 | import none from "./none.js";
|
|---|
| 2 |
|
|---|
| 3 | export default function(series, order) {
|
|---|
| 4 | if (!((n = series.length) > 0)) return;
|
|---|
| 5 | for (var i, n, j = 0, m = series[0].length, y; j < m; ++j) {
|
|---|
| 6 | for (y = i = 0; i < n; ++i) y += series[i][j][1] || 0;
|
|---|
| 7 | if (y) for (i = 0; i < n; ++i) series[i][j][1] /= y;
|
|---|
| 8 | }
|
|---|
| 9 | none(series, order);
|
|---|
| 10 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.