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

colorMapper random colors #213

Open
radwaElyamany opened this issue Aug 10, 2022 · 0 comments
Open

colorMapper random colors #213

radwaElyamany opened this issue Aug 10, 2022 · 0 comments

Comments

@radwaElyamany
Copy link

radwaElyamany commented Aug 10, 2022

when adding random color to decide the color of each frame using this function

    function colorMapper(d, originalColor) {
      const colors = ['#84D67B', '#9CDE95', '#B5E6AF', '#CDEECA', '#CDEECA'];
      return colors[Math.floor(Math.random() * colors.length)];
    }

when i click on any frame the colors keep changing

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

No branches or pull requests

1 participant