Skip to content

Add DataColumn API for breaks in Legend/Axis #417

@AndreiKingsley

Description

@AndreiKingsley

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())
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    dataframeAn issue/PR related to dataframeenhancementNew feature or requestgood first issueGood for newcomerslets-plotAPI and implementation for lets-plot

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions