Commit 97998e29 authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix type handling in load api - #1013

parent edec7eca
......@@ -2140,7 +2140,8 @@
// set type if args.types || args.type specified
if (args.type || args.types) {
targets.forEach(function (t) {
$$.setTargetType(t.id, args.types ? args.types[t.id] : args.type);
var type = args.types && args.types[t.id] ? args.types[t.id] : args.type;
$$.setTargetType(t.id, type);
});
}
// Update/Add data
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -8,7 +8,8 @@ c3_chart_internal_fn.load = function (targets, args) {
// set type if args.types || args.type specified
if (args.type || args.types) {
targets.forEach(function (t) {
$$.setTargetType(t.id, args.types ? args.types[t.id] : args.type);
var type = args.types && args.types[t.id] ? args.types[t.id] : args.type;
$$.setTargetType(t.id, type);
});
}
// Update/Add data
......
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