Add `DataColumn` API for breaks in `Legend`/`Axis`
- Dominant language
- Kotlin
- Stars
- 744
- Forks
- 27
- Avg merge
- 4d 1h
- Merged PRs (30d)
- 1
Description
Add new `breaks` (an analogue for all existing function) with `DatColumn` argument for passing breaks for axis and legend:
`fun breaks(breaks: DataColumn, format: String? = null)`
https://github.com/Kotlin/kandy/blob/main/kandy-lets-plot/src/main/kotlin/org/jetbrains/kotlinx/kandy/letsplot/scales/guide/model/LetsPlotAxis.kt
https://github.com/Kotlin/kandy/blob/main/kandy-lets-plot/src/main/kotlin/org/jetbrains/kotlinx/kandy/letsplot/scales/guide/model/LetsPlotLegend.kt
A common case:
```
legends {
breaks(column.distinct())
}
```
Contributor guide
Research direction
Start with the existing breaks APIs in LetsPlotAxis.kt and LetsPlotLegend.kt, then compare their signatures with the requested DataColumn overload. Trace how the legends { breaks(column.distinct()) } example should reach both guide models. Done means both APIs accept DataColumn values with the optional format and preserve the existing breaks behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100