Browse Source

Merge pull request #398 from gballet/master

Data vailidity check
pull/435/head
Masayuki Tanaka 10 years ago
parent
commit
2de3cd0790
  1. 6
      c3.js
  2. 6
      c3.min.js

6
c3.js

@ -1552,6 +1552,9 @@
for (i = 1; i < rows.length; i++) {
new_row = {};
for (j = 0; j < rows[i].length; j++) {
if (isUndefined(rows[i][j])) {
throw new Error("Source data is missing a component at (" + i + "," + j + ")!");
}
new_row[keys[j]] = rows[i][j];
}
new_rows.push(new_row);
@ -1566,6 +1569,9 @@
if (isUndefined(new_rows[j - 1])) {
new_rows[j - 1] = {};
}
if (isUndefined(columns[i][j])) {
throw new Error("Source data is missing a component at (" + i + "," + j + ")!");
}
new_rows[j - 1][key] = columns[i][j];
}
}

6
c3.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save