Skip to content

Commit d3d6f4b

Browse files
Add annotations for geomCrossbar()
1 parent 9744804 commit d3d6f4b

File tree

5 files changed

+477
-5
lines changed

5 files changed

+477
-5
lines changed

demo/jvm-batik/src/main/kotlin/frontendContextDemo/scripts/Pie.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ package frontendContextDemo.scripts
77

88
import frontendContextDemo.ScriptInBatikContext
99
import org.jetbrains.letsPlot.Stat
10-
import org.jetbrains.letsPlot.annotations.layerLabels
10+
import org.jetbrains.letsPlot.annotations.AnnotationOptions
1111
import org.jetbrains.letsPlot.asDiscrete
1212
import org.jetbrains.letsPlot.commons.values.Color
1313
import org.jetbrains.letsPlot.coord.coordFixed
@@ -97,7 +97,7 @@ object Pie {
9797
(p2 + ggtitle("With annotations") +
9898
geomPie(
9999
stat = Stat.identity, size = 20, stroke = 1, color = Color.BLACK, hole = 0.6,
100-
labels = layerLabels("count").format("count", "d").size(14),
100+
labels = AnnotationOptions("count").format("count", "d").size(14),
101101
tooltips = tooltipsNone
102102
) {
103103
slice = "count"

0 commit comments

Comments
 (0)