Closes #311 by scaling the colormap to the range of the data, improving contrast.
Pros and Cons of 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.
Closes #311 by scaling the colormap to the range of the data, improving contrast.
Pros and Cons of 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:
After: