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

Panning with autoScaleYaxis enabled results in 'me is not defined' #642

Closed
drewtownchi opened this issue Jun 2, 2019 · 0 comments
Closed

Comments

@drewtownchi
Copy link

drewtownchi commented Jun 2, 2019

Codepen

https://codesandbox.io/s/vue-basic-example-udhni

if (w.config.chart.zoom.autoScaleYaxis) {
const scale = new Scales(me.ctx)
yaxis = scale.autoScaleY(me.ctx, { xaxis })
}
this.ctx._updateOptions(

the context is not being passed to the PanScrolled function or me is not being redefined. This error only happens when autoScaleYaxis is enabled in the chart options

Explanation

  • What is the behavior you expect?

Ability to pan when autoScaleYaxis is enabled

  • What is happening instead?

'me is not defined' in the console and not panning

  • What error message are you getting?
    'me is not defined'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant