Commit 651a26a5 authored by Masayuki Tanaka's avatar Masayuki Tanaka

Set withUpdateXDomain false

parent 1e2a28ec
...@@ -1217,7 +1217,7 @@ ...@@ -1217,7 +1217,7 @@
updateTargets(targets); updateTargets(targets);
// Draw with targets // Draw with targets
redraw({withTransition:false}); redraw({withTransition:false, withUpdateXDomain:true});
// Show tooltip if needed // Show tooltip if needed
if (__tooltip_init_show) { if (__tooltip_init_show) {
...@@ -1250,7 +1250,7 @@ ...@@ -1250,7 +1250,7 @@
withY = isDefined(options.withY) ? options.withY : true; withY = isDefined(options.withY) ? options.withY : true;
withSubchart = isDefined(options.withSubchart) ? options.withSubchart : true; withSubchart = isDefined(options.withSubchart) ? options.withSubchart : true;
withTransition = isDefined(options.withTransition) ? options.withTransition : true; withTransition = isDefined(options.withTransition) ? options.withTransition : true;
withUpdateXDomain = isDefined(options.withUpdateXDomain) ? options.withUpdateXDomain : true; withUpdateXDomain = isDefined(options.withUpdateXDomain) ? options.withUpdateXDomain : false;
duration = withTransition ? 250 : 0; duration = withTransition ? 250 : 0;
...@@ -1452,15 +1452,15 @@ ...@@ -1452,15 +1452,15 @@
redraw({ redraw({
withTransition: false, withTransition: false,
withY: false, withY: false,
withSubchart: false withSubchart: false,
withUpdateXDomain: true
}); });
} }
function redrawForZoom() { function redrawForZoom() {
redraw({ redraw({
withTransition: false, withTransition: false,
withY: false, withY: false,
withSubchart: false, withSubchart: false
withUpdateXDomain: false
}); });
if (d3.event.sourceEvent.type === 'mousemove') { if (d3.event.sourceEvent.type === 'mousemove') {
cancelClick = true; cancelClick = true;
...@@ -1495,7 +1495,7 @@ ...@@ -1495,7 +1495,7 @@
updateLegend(c3.data.targets, {withTransition:false}); updateLegend(c3.data.targets, {withTransition:false});
} }
// Draw with new sizes & scales // Draw with new sizes & scales
redraw({withTransition:false}); redraw({withTransition:false, withUpdateXDomain:true});
} }
function updateTargets (targets) { function updateTargets (targets) {
......
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