Skip to content

Commit

Permalink
skip: revert getting scale method
Browse files Browse the repository at this point in the history
revert change of 67e863e, due to wrong refactoring causing side-effects
  • Loading branch information
netil committed Sep 18, 2017
1 parent 26de147 commit e05c10f
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/internals/ChartInternal.js
Original file line number Diff line number Diff line change
Expand Up @@ -905,15 +905,11 @@ export default class ChartInternal {
}

xx(d) {
const x = d ? d.x : null;
let scale = null;

if (x) {
scale = this.config.zoom_enabled && this.zoomScale ?
this.zoomScale(x) : this.x(x);
if (this.config.zoom_enabled && this.zoomScale) {
return d ? this.zoomScale(d.x) : null;
} else {
return d ? this.x(d.x) : null;
}

return scale;
}

xv(d) {
Expand Down

0 comments on commit e05c10f

Please sign in to comment.