Kotlin / kandy

Kotlin plotting library.
https://kotlin.github.io/kandy/
Apache License 2.0
603 stars 16 forks source link

Add `breaks` and `labels` size equality check in `breaksLabeled()` #416

Open AndreiKingsley opened 3 months ago

AndreiKingsley commented 3 months ago

Check if sizes of breaks and labels provided in breaksLabeled() are equal and throw an error if they are not.

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