Skip to content
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

Fix tooltip randomly switching when have equal values #2311

Merged
merged 1 commit into from
Mar 24, 2018

Conversation

panthony
Copy link
Contributor

@panthony panthony commented Mar 21, 2018

This PR fixes issue described by #2293 and introduced by #1814.

Hopefully, this time, it does not introduce any more regressions.

There are lot's of tooltip/donut tests around sorting and they are all greens.


close #2293

@panthony panthony force-pushed the fix/tooltip-random-order branch 2 times, most recently from 4fe652b to 7a52cfd Compare March 22, 2018 08:47
@panthony panthony force-pushed the fix/tooltip-random-order branch from 7a52cfd to 32fe13f Compare March 22, 2018 09:00
@codecov-io
Copy link

codecov-io commented Mar 22, 2018

Codecov Report

Merging #2311 into master will increase coverage by 0.9%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #2311     +/-   ##
=========================================
+ Coverage   74.95%   75.86%   +0.9%     
=========================================
  Files          51       51             
  Lines        4233     4235      +2     
=========================================
+ Hits         3173     3213     +40     
+ Misses       1060     1022     -38
Impacted Files Coverage Δ
src/arc.js 86.15% <100%> (+12.47%) ⬆️
src/data.js 69.84% <100%> (-0.24%) ⬇️
src/api.focus.js 100% <0%> (+8.57%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 208b8ec...32fe13f. Read the comment docs.

@kt3k
Copy link
Member

kt3k commented Mar 24, 2018

I confirmed this fixes the example of #2293. Thank you for the contribution!

(The iteration of sorting and reversing caused the flipping the order of the entries of the same values. This PR removes the reversing of targets and flipping behavior disappears.)

@kt3k kt3k merged commit 9904867 into c3js:master Mar 24, 2018
@panthony panthony deleted the fix/tooltip-random-order branch August 7, 2019 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tooltip legend randomly switching order of equal values
3 participants