Commit 2f8f09e2 authored by Evgeny's avatar Evgeny

Fix problem with sub charts

parent 90ab32dc
......@@ -493,12 +493,11 @@
// export element of the chart
$$.api.element = $$.selectChart.node();
if($$.config.hasSubs || $$.config.isSub){
$$.api.flush();
setTimeout(function(){
setTimeout(function(){
if($$.config.hasSubs || $$.config.isSub){
$$.api.flush();
}, 200);
}
}
}, 200);
};
c3_chart_internal_fn.smoothLines = function (el, type) {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -304,12 +304,11 @@ c3_chart_internal_fn.initWithData = function (data) {
// export element of the chart
$$.api.element = $$.selectChart.node();
if($$.config.hasSubs || $$.config.isSub){
$$.api.flush();
setTimeout(function(){
setTimeout(function(){
if($$.config.hasSubs || $$.config.isSub){
$$.api.flush();
}, 200);
}
}
}, 200);
};
c3_chart_internal_fn.smoothLines = function (el, type) {
......
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