forked from swimlane/ngx-charts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug: Tooltip not appearing for certain points (swimlane#501)
This fixes an issue where the tooltip would not appear for certain data points. I had thirty data points in a line chart, and the tooltip was not working for points 2-9. Looking further, I noticed that the array of points along the x axis was not being sorted in the correct order. The numbers were being sorted in alphabetical order (which explains why 10 came after 1), so I added a compare function in the related sorts to sort the number in xSet numerically.
- Loading branch information
1 parent
faefb58
commit 18b010e
Showing
4 changed files
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters