Hello, when implementing the donut chart, I can't use the formatter to display the label values ( https://apexcharts.com/docs/options/plotoptions/pie/#labels ).
PlotOptionsBuilder.get().withPie(PieBuilder.get()
.withDonut(DonutBuilder.get()
.withSize("70%")
.withLabels(LabelsBuilder.get()
.withShow(false)
.withName(NameBuilder.get().withShow(true)
.withOffsetY(-16d)
.withColor("#adad44")
.build())
.withValue(ValueBuilder.get().withFormatter(
" function (val) { " +
" return val " +
" } ")
.build())
When displayed, it throws the following error (js):
The same formatting function works on DataLabels... ...