Commit 993164e5 authored by Evgeny's avatar Evgeny

Fix sub-charts

parent b6ada87f
......@@ -25,6 +25,12 @@ c3.chart.internal.fn.resolveDraw = function(options){
var $$ = this;
$$.resolveCallbacks();
$$.updateAndRedraw();
// Hack so sub-chart draws correctly.
if($$.config.hasSubs || $$.config.isSub){
setTimeout(function(){
$$.updateAndRedraw();
});
}
};
c3.chart.internal.fn.cachedRedraw = function(options, callback){
......
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