Revision history [back]

click to hide/show revision 1
initial version

answered 2019-07-24 15:02:59 +0800

cor3000 gravatar image cor3000

It looks like you, almost got there. You already round the dataLabels in plotOptions:

In addition to enabling them you can also define styles by calling setStyle(...)

Here a native example for highcharts: https://jsfiddle.net/p312jw9t/

in ZkCharts his becomes:

plotOptions.getDataLabels().setStyle(Collections.singletonMap("fontSize", "20px"));

or

plotOptions.getDataLabels().setStyle("fontSize: 20px;");

Since it seems too simple to be true:

Did you already try that? Was there a problem/unexpected result?

It looks like you, almost got there. You already round found the dataLabels object in plotOptions:

plotOptions. In addition to enabling them you can also define styles by calling setStyle(...).

Here a native example for highcharts: https://jsfiddle.net/p312jw9t/

in ZkCharts his this becomes:

plotOptions.getDataLabels().setStyle(Collections.singletonMap("fontSize", "20px"));

or

plotOptions.getDataLabels().setStyle("fontSize: 20px;");

Since it seems too simple to be true:

Did you already try that? Was there a problem/unexpected result?

It looks like you, almost got there. You already found the dataLabels object in plotOptions. In addition to enabling them you can also define styles by calling setStyle(...).

https://www.zkoss.org/javadoc/latest/zkcharts/org/zkoss/chart/plotOptions/DataLabels.html#setStyle-java.lang.String-

Here a native example for highcharts: https://jsfiddle.net/p312jw9t/

in ZkCharts this becomes:

plotOptions.getDataLabels().setStyle(Collections.singletonMap("fontSize", "20px"));

or

plotOptions.getDataLabels().setStyle("fontSize: 20px;");

Since it seems too simple to be true:

Did you already try that? Was there a problem/unexpected result?

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More