Browse Source

Update x domain when unload in load API - #342

pull/373/merge
Masayuki Tanaka 11 years ago
parent
commit
48e29ac59e
  1. 5
      c3.js
  2. 2
      c3.min.js
  3. 1
      htdocs/samples/data_load.html

5
c3.js

@ -4446,6 +4446,7 @@
}
function load(targets, args) {
if (targets) {
// filter loading targets if needed
if (args.filter) {
targets = targets.filter(args.filter);
@ -4467,6 +4468,7 @@
}
});
c3.data.targets = c3.data.targets.concat(targets); // add remained
}
// Set targets
updateTargets(c3.data.targets);
@ -4496,6 +4498,9 @@
else if (args.columns) {
load(convertDataToTargets(convertColumnsToData(args.columns)), args);
}
else {
load(null, args);
}
}
function unload(targetIds, done) {

2
c3.min.js vendored

File diff suppressed because one or more lines are too long

1
htdocs/samples/data_load.html

@ -47,6 +47,7 @@
[120, 160, 230],
[80, 130, 300],
[90, 220, 320],
[1090, 1220, 1320],
]
});
},

Loading…
Cancel
Save