You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
issue
callback function didTouchChart will not return last index even last data point is touched.
how to reproduce:
in StockChart/ SwiftChart Examples, touched data will pop up.
try to touch last point. only "106.98" will pop up but last data is "108.00"
Last data is 108.00. (in data file "APPL.json" has followings.)
...
{ "date": "2014-10-30", "close": 106.98 },
{ "date": "2014-10-31", "close": 108.00 }]
} // end of data
comment:
after small investigation, I found method "handleTouchEvents" always select left side index.
i.e. "findClosestInValues" will return left-side index and right-side index for the value, but "handleTouchEvents" will always choose left-side index. (so last index will never be returned.)
is this expected behavior?
The text was updated successfully, but these errors were encountered:
issue
callback function didTouchChart will not return last index even last data point is touched.
how to reproduce:
in StockChart/ SwiftChart Examples, touched data will pop up.
try to touch last point. only "106.98" will pop up but last data is "108.00"
Last data is 108.00. (in data file "APPL.json" has followings.)
...
{ "date": "2014-10-30", "close": 106.98 },
{ "date": "2014-10-31", "close": 108.00 }]
} // end of data
comment:
after small investigation, I found method "handleTouchEvents" always select left side index.
i.e. "findClosestInValues" will return left-side index and right-side index for the value, but "handleTouchEvents" will always choose left-side index. (so last index will never be returned.)
is this expected behavior?
The text was updated successfully, but these errors were encountered: