JetBrains / lets-plot-kotlin

Grammar of Graphics for Kotlin
https://lets-plot.org/kotlin/
MIT License
419 stars 36 forks source link

Skip name in the legend #171

Closed Tamada4a closed 1 year ago

Tamada4a commented 1 year ago

is it possible to hide a certain element in the legend? For example, from this Графическая оценка НКФ to this image

alshan commented 1 year ago

If you define color as a constant (i.e. via the "color" parameter in geomHLine()) then it wont show up in legend.

Alternatively, you can try to limit "breaks" on the color scale : scaleColorDiscrete(breaks=listOf(.. data values .. ))

Tamada4a commented 1 year ago

Thanks a lot!!