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

Highcharts 5.0 - afterSetExtremes not triggered after Axis update #5773

Closed
qingweibinary opened this Issue Oct 4, 2016 · 4 comments

Comments

Projects
None yet
3 participants
@qingweibinary

qingweibinary commented Oct 4, 2016

Expected behaviour

afterSetExtremes should be triggered everytime extremes changed

Actual behaviour

It is only trigger onload, and never trigger after that despite how I change extremes

Live demo with steps to reproduce

http://jsfiddle.net/uur9wr57/

  1. open console
  2. click the button
  3. No message is log

Affected browser(s)

Only tested in chrome

@pawelfus

This comment has been minimized.

Show comment
Hide comment
@pawelfus

pawelfus Oct 4, 2016

Contributor

Hi @qingweibinary - it should be xAxis.events.afterSetExtremes, not xAxis.afterSetExtremes, see working demo: http://jsfiddle.net/e6psyt40/

Contributor

pawelfus commented Oct 4, 2016

Hi @qingweibinary - it should be xAxis.events.afterSetExtremes, not xAxis.afterSetExtremes, see working demo: http://jsfiddle.net/e6psyt40/

@pawelfus pawelfus closed this Oct 4, 2016

@pawelfus pawelfus added the Not a bug label Oct 4, 2016

@qingweibinary

This comment has been minimized.

Show comment
Hide comment
@qingweibinary

qingweibinary Oct 5, 2016

Hi @pawelfus

Really sorry for wasted your time, the bug is still there, but my method to reproduce was wrong

Here's an updated fiddle that illustrate it correctly

http://jsfiddle.net/uur9wr57/2/

  1. click button
  2. try to move the extremes and now events is not triggered
  3. from the console output, it seems calling update method remove the events options

qingweibinary commented Oct 5, 2016

Hi @pawelfus

Really sorry for wasted your time, the bug is still there, but my method to reproduce was wrong

Here's an updated fiddle that illustrate it correctly

http://jsfiddle.net/uur9wr57/2/

  1. click button
  2. try to move the extremes and now events is not triggered
  3. from the console output, it seems calling update method remove the events options
@pawelfus

This comment has been minimized.

Show comment
Hide comment
@pawelfus

pawelfus Oct 5, 2016

Contributor

Oh, now I see, thank you!

Highcharts demo: http://jsfiddle.net/qyg3ee7b/

Steps to reproduce the issue:

  • drag&drop to zoom in: callback is executed
  • click Update xAxis
  • drag&drop to zoom in: callback is not executed anymore
Contributor

pawelfus commented Oct 5, 2016

Oh, now I see, thank you!

Highcharts demo: http://jsfiddle.net/qyg3ee7b/

Steps to reproduce the issue:

  • drag&drop to zoom in: callback is executed
  • click Update xAxis
  • drag&drop to zoom in: callback is not executed anymore

@pawelfus pawelfus reopened this Oct 5, 2016

@pawelfus pawelfus added Bug and removed Not a bug labels Oct 5, 2016

@pawelfus pawelfus changed the title from Highcharts 5.0 - afterSetExtremes not triggered to Highcharts 5.0 - afterSetExtremes not triggered after Axis update Oct 5, 2016

@jschuler

This comment has been minimized.

Show comment
Hide comment
@jschuler

jschuler Oct 6, 2016

Also affects setExtremes event

jschuler commented Oct 6, 2016

Also affects setExtremes event

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment