Pre loader

isHit boolean is not set correctly for negative stacked columns inside stackedColumnRenderableSeries hit test provider

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

Answered
1
0

Hello there,

The hit test provider for stackedColumnRenderableSeries returns ‘false’ for the ‘isHit’ boolean when hit testing stacked columns with negative values. However, stacked Columns with positive values correctly return ‘true’ for ‘isHit’ when used in the same setup.
I am trying to achieve that the hit test provider returns ‘true’ when hit testing stacked columns with negative values.

Here’s my demo:
https://codepen.io/maxgeldner/pen/rNXYjgX?editors=1010

I have tried exchanging the series in line 75 and 77 and clicking on the displayed columns afterwards in order to hit test them. Clicking on negative columns returns ‘false’ inside the hit test, clicking on positive columns returns ‘true’.

Version
3.5.687
  • You must to post comments
Best Answer
0
0

Hi Johannes,

This fix has been pushed to version 3.5.697. Thank you again!

Best regards,
Andrei Vascul
Software engineer, SciChart Ltd.

  • You must to post comments
0
0

Hello Andrei,

thank you very much for your answer and for the quick fix! Very helpful!

Kind regards,
Johannes

  • You must to post comments
0
0

Hi Johannes,

This was an actual bug where the isHit was checked to be between top and bottom, but only if top > bottom, thank you for spotting this!

Here is a ticket on this: https://abtsoftware.myjetbrains.com/youtrack/issue/SCJS-1854/HitTest-boolean-isHit-did-not-register-for-negative-points.

The fix is merged to dev, is waiting for testing and will be pushed into production, which will most likely be at the end of this week or start of the next week.

Best regards,
Andrei Vascul
Software engineer, SciChart Ltd.

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.