setLabels() should update the labels at the charts
hoshie82 opened this issue · 0 comments
hoshie82 commented
FYI: only tested with a radial bar...
Is your feature request related to a problem? Please describe.
I want to change the label, when I change the bar-value
charts.setLabels(newLabel);
charts.updateSeries(newValue);
Describe the solution you'd like
It seems, that the updateOptions method of apexcharts can be used for this...
Describe alternatives you've considered
StringBuilder sb = new StringBuilder();
sb.append("if(this.chartComponent){")
.append("this.updateConfig();")
.append("this.chartComponent.updateOptions(this.config);")
.append("}");
getElement().executeJs(sb.toString());
edit: ok, found a workaround.. not sure, why it didn't work at my first try... ^^