Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[color-chart] Where should the points corresponding to null and NaN be plotted? #121

Open
DmitrySharabin opened this issue Oct 16, 2024 · 1 comment

Comments

@DmitrySharabin
Copy link
Member

For example:

<color-chart y="oklch.h">
	<color-scale colors="black, white"></color-scale>
</color-chart>
image

As @LeaVerou pointed out, null corresponds to CSS none; NaN is distinct.

@DmitrySharabin
Copy link
Member Author

(from @LeaVerou) We should plot null as the same as the previous value.

There's another thing to consider, though: What if there are no previous values, like if we plot two colors (black and white) on the oklch.h chart?

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

No branches or pull requests

1 participant