Kotlin / Kotlin/kandy

Defining scales with function

Open
#459 0 comments 0 reactions 0 assignees View on GitHub
api enhancement
Dominant language
Kotlin
Stars
744
Forks
27
Avg merge
4d 1h
Merged PRs (30d)
1

Description

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.

Contributor guide

Open the contributing guide

Research direction

Review the direct-applying and identity-scale work in issue #402 first. Define how continuous and categorical function scales should be exposed, including how column IDs and original versus transformed columns are handled; done means the API and its data-flow semantics are agreed and implemented.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.