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

Defining scales with function #459

Open
AndreiKingsley opened this issue Dec 18, 2024 · 0 comments
Open

Defining scales with function #459

AndreiKingsley opened this issue Dec 18, 2024 · 0 comments
Labels
api Common API for plotting enhancement New feature or request

Comments

@AndreiKingsley
Copy link
Collaborator

Add an API for defining scale as a actual function.

Something like that:

scale = continuous {
   x -> Color.rgb(0, 0, x / 100 * 256)
}

scale = categorical { x ->
   when (x) {
      "" -> LineType.SOLID
   }
}

Implementation = direct applying + identity scale (#402), but there's problems with column id, should we save both original and transformed column, etc.

@AndreiKingsley AndreiKingsley added enhancement New feature or request api Common API for plotting labels Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Common API for plotting enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant