JetBrains / lets-plot-kotlin

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

Q: any way to line-wrap facet labels? #237

Closed tecunningham closed 2 months ago

tecunningham commented 4 months ago

My facet labels don't seem to contain line breaks (I tried newlines or HTML breaks.).

GGplot supports label_wrap_gen, is there any workaround in lets-plot?

OLarionova-HORIS commented 4 months ago

Unfortunately, at the moment there is no way to create a multi-line facet labels. But it is in the plans.

OLarionova-HORIS commented 3 months ago

Added via commit: https://github.com/JetBrains/lets-plot/commit/5236da54af75539743abfea9df051687c1fbe6c7

alshan commented 2 months ago

A workaround was added in v4.7.1, see: example notebook.