Open AndreiKingsley opened 1 month ago
Add new breaks (an analogue for all existing function) with DatColumn argument for passing breaks for axis and legend:
breaks
DatColumn
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()) }
Please provide detailed instructions on how to complete this task
Add breaks(DataColumn) function with the same logic.
breaks(DataColumn)
Add new
breaks
(an analogue for all existing function) withDatColumn
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: