SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components

0
0

Screenshots attached.

To recreate:

  • Create a chart
  • Add a CursorModifier – default options is fine
  • Either directly remove the modifier using .remove(modifier), or clear all using .clear()

Expected behaviour:
– Should remove the cursor modifier

Actual behaviour with bug:
– Crashes the page

This appears to be an issue with CursorModifier only (out of the 5 or 6 that I’ve tried). Other modifiers work as expected.

Traced the issue to this.parentSurface being undefined in CursorModifier.js, so when onDetach() is called, it errors.

Thanks!
Joe

Version
1.1.1382
Images
  • Andrew Burnett-Thompson
    Hi Joe, noted, thanks for the steps to reproduce. Will add to the work queue. Thanks!
  • You must to post comments
1
0

Hi Joe,

Thank you for finding the bug. In fact “Cannot read property annotations of undefined at CursorModifier.onDetach” error occurred not only in CursorModifier but in RolloverModifier as well.
We have fixed it in version 1.2.1426.

Best regards,
Michael

  • Henrique Rodrigues
    Thanks again for the good work Michael. All fixed and working nicely!
  • You must to post comments
0
0

Hi @Michael, I’ve come across a similar bug to this in version 1.2.1463 when detaching a RolloverModifier. You mentioned that it had an issue before – screenshot attached – is this related?

Images
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.