source-map-explorer icon indicating copy to clipboard operation
source-map-explorer copied to clipboard

Add background coloring to treemap view

Open hammer opened this issue 9 years ago • 6 comments

hammer avatar Oct 30 '15 15:10 hammer

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?

danvk avatar Oct 30 '15 15:10 danvk

Something like https://upload.wikimedia.org/wikipedia/commons/3/39/Finland_Export_Treemap.jpg

hammer avatar Oct 30 '15 15:10 hammer

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.

JamesMessinger avatar Apr 08 '16 20:04 JamesMessinger

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

danvk avatar Apr 09 '16 20:04 danvk

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.

JamesMessinger avatar Apr 10 '16 23:04 JamesMessinger

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.

paulirish avatar Sep 15 '16 18:09 paulirish