Commit 48e29ac5 authored by Masayuki Tanaka's avatar Masayuki Tanaka

Update x domain when unload in load API - #342

parent 887ebcc8
......@@ -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) {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -47,6 +47,7 @@
[120, 160, 230],
[80, 130, 300],
[90, 220, 320],
[1090, 1220, 1320],
]
});
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment