Skip to content

identity scale #57

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

Closed
wants to merge 3 commits into from
Closed

identity scale #57

wants to merge 3 commits into from

Conversation

Fil
Copy link
Contributor

@Fil Fil commented Dec 18, 2020

The ordinal identity scale is not complete in the sense that it offers only a (null) domain method, which is the only method that is called. We could imagine having such a scale in d3-scale, that would provide all the expected methods (domain, range, etc) and return the expected (ie the scale if an argument is given).

Closes #56

@Fil Fil requested a review from mbostock December 18, 2020 08:33
@Fil Fil marked this pull request as draft December 18, 2020 08:35
@Fil Fil removed the request for review from mbostock December 18, 2020 08:36
@Fil Fil marked this pull request as ready for review December 18, 2020 08:44
@Fil Fil requested a review from mbostock December 18, 2020 08:44
@mbostock
Copy link
Member

I moved the ScaleIdentity definition to a separate file, since it can be either ordinal or quantitative depending on the data.

@mbostock
Copy link
Member

Let’s discuss in #56.

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.

An identity (?) scale type that effectively disables the scale, so that you can define channels in visual values (e.g., literal colors or pixels)?
2 participants