Data Labels are labels that provide additional information about data markers, which represent single data values. They appear slightly offset from where the value is plotted. There are four different types of data labels
The below code shows how to add PercentageDataLabel to a DateTime100PercentStackedLine series.
[Java]
DateTime100PercentStackedLineSeriesElement seriesElement = new DateTime100PercentStackedLineSeriesElement("series name");
seriesElement.setDataLabel(new PercentageDataLabel(true, true, true, true));
The below code shows how to create and add XYScatterDataLabel to a XYScatter series.
[Java]
XYScatterSeries xyScatterSeries = new XYScatterSeries("series name");
xyScatterSeries.setDataLabel(new XYScatterDataLabel(true, true, true));
The below code shows how to add ValuePositionDataLabel to a DateTimeLine series.
[Java]
DateTimeLineSeries lineSeries = new DateTimeLineSeries("series name");
lineSeries.setDataLabel(new ValuePositionDataLabel(true, true, true));
The below code shows how to add ScalarDataLabel to a PieSeries.
[Java]
PieSeries pieSeries = new PieSeries();
pieSeries.setDataLabel(new ScalarDataLabel(true,true,true));