Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong y-axis zoom behavior #1422

Closed
wielski opened this issue Mar 24, 2020 · 2 comments · Fixed by Sheitak/weather-graphics-monitoring#4 or Sheitak/weather-graphics-monitoring#8
Closed
Labels
bug Something isn't working

Comments

@wielski
Copy link

wielski commented Mar 24, 2020

Bug report

Codepen

https://codepen.io/wielski/pen/LYVgGbX

Explanation

  • What is the behavior you expect?
    When zoom type is set to "y" chart should zoom only by y-axis

  • What is happening instead?
    It shows right zoom selection, but chart is zooming by x-axis too

  • What error message are you getting?
    No errors

@wielski
Copy link
Author

wielski commented Mar 24, 2020

I also tried to fix it with beforeZoom event, but I getting error "Cannot read property 'constructor' of undefined":

  public beforeZoom(options: ApexOptions): ApexOptions {
    if (this.zoomType === ZoomType.x) {
      return {
        xaxis: options.xaxis,
      };
    }

    if (this.zoomType === ZoomType.y) {
      return {
        yaxis: options.yaxis,
      };
    }

    return {
      xaxis: options.xaxis,
      yaxis: options.yaxis,
    };
  }

@junedchhipa junedchhipa added the bug Something isn't working label Mar 24, 2020
@junedchhipa
Copy link
Contributor

You're correct, I confirm the bug.
It will be addressed soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants