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

Updating dicopal #10

Open
mthh opened this issue Feb 4, 2025 · 0 comments
Open

Updating dicopal #10

mthh opened this issue Feb 4, 2025 · 0 comments

Comments

@mthh
Copy link
Member

mthh commented Feb 4, 2025

Just a minor suggestion about dicopal: you're using version 0.6.4 and could upgrade to version 0.8.1, which would give you the following without changing your code:

  • a new palette (Observable10) for “typo” representation with 10 categories,
  • a smaller build size thanks to a more compact palette representation.

In addition, I believe you have some code (here) to generate a palette with more classes than the maximum number of colors of the original palette. Dicopal has the getSequentialColors(<palette name>, <number of colors>) function to manage this directly for you if you want (see https://github.com/riatelab/dicopal.js?tab=readme-ov-file#generating-colors-for-interpolated-sequential-palettes).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant