We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bc89de commit 551fdebCopy full SHA for 551fdeb
src/coordinate-grid-mixin.js
@@ -479,7 +479,7 @@ dc.coordinateGridMixin = function (_chart) {
479
480
function prepareXAxis (g, render) {
481
if (!_chart.isOrdinal()) {
482
- if (_chart.elasticX()) {
+ if (_chart.elasticX() && (render || (!_chart.mouseZoomable() && !_rangeChart))) {
483
_x.domain([_chart.xAxisMin(), _chart.xAxisMax()]);
484
}
485
} else { // _chart.isOrdinal()
@@ -1236,7 +1236,7 @@ dc.coordinateGridMixin = function (_chart) {
1236
1237
_chart.plotData();
1238
1239
- if (_chart.elasticX() || _resizing || render) {
+ if (_chart.elasticX() && (!_chart.mouseZoomable() && !_rangeChart) || _resizing || render) {
1240
_chart.renderXAxis(_chart.g());
1241
1242
0 commit comments