kandy icon indicating copy to clipboard operation
kandy copied to clipboard

Add `DataColumn` API for breaks in `Legend`/`Axis`

Open AndreiKingsley opened this issue 1 year ago • 3 comments

Add new breaks (an analogue for all existing function) with DatColumn argument for passing breaks for axis and legend:

fun breaks(breaks: DataColumn<DomainType>, 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())
}

AndreiKingsley avatar Jul 30 '24 13:07 AndreiKingsley

Please provide detailed instructions on how to complete this task

devcrocod avatar Jul 31 '24 09:07 devcrocod

Add breaks(DataColumn) function with the same logic.

AndreiKingsley avatar Jul 31 '24 10:07 AndreiKingsley

Hey, i would like to work on this task

CarloMariaProietti avatar Sep 04 '25 12:09 CarloMariaProietti