Make setValue for pie id-insensitive

parent 7103c556
......@@ -109,6 +109,10 @@ c3_chart_fn.setValue = function(id, i, value){
}
});
if($$.config.data_type.indexOf('pie') !== -1){
i = 0;
}
if(!target.values[i]){
$$.api.appendToColumn([id, value]);
} else {
......
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