Commit 45325ebd authored by Evgeny's avatar Evgeny

Fix lines for charts

parent c94899cf
...@@ -5402,6 +5402,7 @@ ...@@ -5402,6 +5402,7 @@
if($$.config.hasSubs || $$.config.isSub){ if($$.config.hasSubs || $$.config.isSub){
$$.buffer.onlastfinish("draw-lines"+$$.config.isSub, function(){ $$.buffer.onlastfinish("draw-lines"+$$.config.isSub, function(){
console.log("redraw");
$$.ed3Internal.redrawLinesOnBoth(); $$.ed3Internal.redrawLinesOnBoth();
$$.ed3Internal.redrawLinesOnBoth(); $$.ed3Internal.redrawLinesOnBoth();
}); });
...@@ -6488,7 +6489,9 @@ ...@@ -6488,7 +6489,9 @@
var x1, x2, y1, y2; var x1, x2, y1, y2;
if(isSub($$.config.ed3Type)){ console.log(order);
if($$.config.isSub){
$$.ed3Config.subBox = $$.getBox($$.main.selectAll(".sub-chart .c3-chart-bars")); $$.ed3Config.subBox = $$.getBox($$.main.selectAll(".sub-chart .c3-chart-bars"));
...@@ -6558,7 +6561,7 @@ ...@@ -6558,7 +6561,7 @@
var x1, x2, y1, y2; var x1, x2, y1, y2;
if(isSub($$.config.ed3Type)){ if($$.config.isSub){
if(!$$.ed3Config.coords[order]) return; if(!$$.ed3Config.coords[order]) return;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -306,6 +306,7 @@ c3_chart_internal_fn.redrawArc = function (duration, durationForExit, withTransf ...@@ -306,6 +306,7 @@ c3_chart_internal_fn.redrawArc = function (duration, durationForExit, withTransf
if($$.config.hasSubs || $$.config.isSub){ if($$.config.hasSubs || $$.config.isSub){
$$.buffer.onlastfinish("draw-lines"+$$.config.isSub, function(){ $$.buffer.onlastfinish("draw-lines"+$$.config.isSub, function(){
console.log("redraw");
$$.ed3Internal.redrawLinesOnBoth(); $$.ed3Internal.redrawLinesOnBoth();
$$.ed3Internal.redrawLinesOnBoth(); $$.ed3Internal.redrawLinesOnBoth();
}); });
......
...@@ -31,7 +31,7 @@ c3.chart.internal.fn.getLineCoordsForBar = function(center, order){ ...@@ -31,7 +31,7 @@ c3.chart.internal.fn.getLineCoordsForBar = function(center, order){
var x1, x2, y1, y2; var x1, x2, y1, y2;
if(isSub($$.config.ed3Type)){ if($$.config.isSub){
$$.ed3Config.subBox = $$.getBox($$.main.selectAll(".sub-chart .c3-chart-bars")); $$.ed3Config.subBox = $$.getBox($$.main.selectAll(".sub-chart .c3-chart-bars"));
...@@ -101,7 +101,7 @@ c3.chart.internal.fn.getLineCoordsForPie = function(center, order){ ...@@ -101,7 +101,7 @@ c3.chart.internal.fn.getLineCoordsForPie = function(center, order){
var x1, x2, y1, y2; var x1, x2, y1, y2;
if(isSub($$.config.ed3Type)){ if($$.config.isSub){
if(!$$.ed3Config.coords[order]) return; if(!$$.ed3Config.coords[order]) return;
......
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