GRA0007 / crab.fit

Enter your availability to find a time that works for everyone!
https://crab.fit
GNU General Public License v3.0
244 stars 31 forks source link

Set colormap bounds to data range for better contrast #313

Open drinkablebreeze opened 7 months ago

drinkablebreeze commented 7 months ago

Closes #311 by scaling the colormap to the range of the data, improving contrast.

Current Behavior

With the range of the data set to [0, num people] there is low color contrast when there is less difference in availability between possible meeting times. E.g. if for all times only about half of people are available, the colors will all be close to the center of the colormap's full range.

A pro of this behavior is that it makes it obvious if there is low consensus about the best times.

However, since the goal of crab.fit is to help people decide on the best time, that should probably be the priority. Scaling the colormap to the range of the data makes this easier.

Screenshots

At the worst times, 2/9 people are available. At best it's 5/9. Without scaling the colormap to match the data it's difficult to see the difference between the times.

Before:

crabfit_low_contrast

After:

crabfit_higher_contrast