adileo / squirreldisk

Beautiful, Cross-Platform and Super Fast Disk Usage Analysis Tool - Built With Rust 🦀
https://squirreldisk.com
GNU Affero General Public License v3.0
767 stars 27 forks source link

Chart colors makes me unable to distinguish the separate folders #26

Open Svintooo opened 9 months ago

Svintooo commented 9 months ago

Sometimes the colors used makes it really hard for me to distinguish the separate folders in the chart.

image

bkmeneguello commented 4 months ago

The same happens to me. It gets worse when you drill down the folder because they become all the same color. The color palette should be recalculated giving more contrast to the folders, using a fixed color palette for the entire graph should do the job. Maybe here instead of using d3.quantize(d3.interpolateRainbow, colorCounter + 2), you could use something like d3.quantize(d3.interpolateRainbow, colorCounter % 7), since the d3.interpolateRainbow is repetitive it could help improving the contrast even for a large number of files.