Browse Source

Remove update API - #254

pull/264/head
Masayuki Tanaka 11 years ago
parent
commit
9a61819be1
  1. 21
      c3.js
  2. 2
      c3.min.js

21
c3.js

@ -4493,27 +4493,6 @@
redraw({withUpdateXDomain: true});
};
// For passing the configuration you want to update.
c3.update = function (keys, value) {
var target = config, i, isLast, nextTarget;
for (i = 0; i < keys.length; i++) {
isLast = (i === keys.length - 1);
nextTarget = target[keys[i]];
if (isLast) {
if (target[keys[i]] === undefined) {
target[keys[i]] = '';
}
target[keys[i]] = value;
} else {
target = nextTarget;
}
}
// Don't have a way to set the __variables without regenerating.
return parent.c3.generate(config);
};
c3.load = function (args) {
// update xs if specified
if (args.xs) {

2
c3.min.js vendored

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