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

Add background coloring to treemap view #21

Open
hammer opened this issue Oct 30, 2015 · 6 comments
Open

Add background coloring to treemap view #21

hammer opened this issue Oct 30, 2015 · 6 comments

Comments

@hammer
Copy link

hammer commented Oct 30, 2015

No description provided.

@danvk
Copy link
Owner

danvk commented Oct 30, 2015

Are you imagining alternative white/gray (ala a table)?

Are there any examples you can point to of tree maps on the web whose design you like?

@hammer
Copy link
Author

hammer commented Oct 30, 2015

@JamesMessinger
Copy link

Maybe do the color coding based on the directory name? That way, for example, if lodash is being included multiple times, it'll be more obvious because all occurrences would be the same color.

@danvk
Copy link
Owner

danvk commented Apr 9, 2016

You'd need a lot of colors if you had one per unique directory name!

@JamesMessinger
Copy link

Lol. True that. But I'm not thinking about having a huge array of pre-defined colors. Instead, I'm thinking of an algorithm that generates hex color codes from file names. Similar to this algorithm.

@paulirish
Copy link
Contributor

most d3 treemaps don't do unique for everything, but use color/shades to communicate the groupings:
image

I'm +1 on color, but it'll require some care to make sure it works most effectively.

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

No branches or pull requests

5 participants