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

Avoid random sort of legend #1741

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

EijiSugiura
Copy link

Accidentally the order of legend are changed, when we create a graph which both of tooltip and legend are enabled.
To avoid this behavior, we pass deep copy of "$$.data.targets" to orderTargets().

Though it is dirty fix, but works for us.

Accidentally order of legend are changed, when we create a graph which both of tooltip and legend are enabled.
To avoid this behavior, we pass deep copy of "$$.data.targets" to orderTargets().
@codecov-io
Copy link

Current coverage is 64.04%

Merging #1741 into master will not change coverage

@@             master      #1741   diff @@
==========================================
  Files             1          1          
  Lines          4400       4400          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits           2818       2818          
  Misses         1582       1582          
  Partials          0          0          

Powered by Codecov. Last updated by 223404a...575c84b

@craigdrayton
Copy link

I'm experiencing this problem too: I can load data and then order it using an order function, but as soon as I resize the chart, the legend order changes.

@dborstelmann
Copy link

I am also experiencing this problem. Tested out this fix and it works for me. Would love to see this get merged soon so I don't have to use my own copy of c3

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.

None yet

4 participants