Skip to content

adjust heatmap scale behavior#1551

Merged
brharrington merged 1 commit intoNetflix:mainfrom
brharrington:heatmap-scale
May 9, 2023
Merged

adjust heatmap scale behavior#1551
brharrington merged 1 commit intoNetflix:mainfrom
brharrington:heatmap-scale

Conversation

@brharrington
Copy link
Copy Markdown
Contributor

@brharrington brharrington commented May 9, 2023

Changes the min to be the minimum non-zero count for a cell, or zero if there is no data. Updates the color scale to use the actual min/max or the bounds. Before it was using zero even if an explicit lower bound was selected. Further, using the min non-zero count and max count as the range spreads the colors better over the data range.

This also removes the max behavior of rounding to one significant digit. That rounding would lead to tick values that were easier to reason about, but it could round by a large amount relative to the data causing most data to go to a single color cell. Will revisit in the future for achieving more significant tick boundaries with less downsides.

Some minor fixes to the inverted scale logic for the log-linear scale.

Changes the min to be the minimum non-zero count for
a cell, or zero if there is no data. Updates the color
scale to use the actual min/max or the bounds. Before
it was using zero even if an explicit lower bound was
selected. Further, using the min non-zero count and
max count as the range spreads the colors better over
the data range.

This also removes the max behavior of rounding to
one significant digit. That rounding would lead to tick
values that were easier to reason about, but it could
roung by a large amount relative to the data causing
most data to go to a single color cell. Will revisit
in the future for achieving more significant tick
boundaries with less downsides.

Some minor fixes to the inverted scale logic for the
log-linear scale.
@brharrington brharrington added this to the 1.8.0 milestone May 9, 2023
@brharrington brharrington requested a review from manolama May 9, 2023 21:12
@brharrington brharrington merged commit d675304 into Netflix:main May 9, 2023
@brharrington brharrington deleted the heatmap-scale branch May 9, 2023 22:13
manolama pushed a commit to manolama/atlas that referenced this pull request May 22, 2024
Changes the min to be the minimum non-zero count for
a cell, or zero if there is no data. Updates the color
scale to use the actual min/max or the bounds. Before
it was using zero even if an explicit lower bound was
selected. Further, using the min non-zero count and
max count as the range spreads the colors better over
the data range.

This also removes the max behavior of rounding to
one significant digit. That rounding would lead to tick
values that were easier to reason about, but it could
round by a large amount relative to the data causing
most data to go to a single color cell. Will revisit
in the future for achieving more significant tick
boundaries with less downsides.

Some minor fixes to the inverted scale logic for the
log-linear scale.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants