Hi
I have selected stacked bar chart from editable pivot table category and the count of values is visible on hovering over each section of a particular column.
How can I display the count and percentage without hovering over the chart?
Hi
I have selected stacked bar chart from editable pivot table category and the count of values is visible on hovering over each section of a particular column.
How can I display the count and percentage without hovering over the chart?
Hello!
C3 has a “label” property that shows a data label. As PivotTable does not have specific C3 render options, you can provide it via setNativeJson()
:
@Inject
private PivotTable pivotTable;
@Subscribe
public void onInit(InitEvent event) {
pivotTable.setNativeJson("{"
+ " rendererOptions: {"
+ " c3: { "
+ " data: {"
+ " labels: true"
+ " }"
+ " }"
+ " }"
+ "}");
}
Helpful links: