Enables data labels and sets their styles.
This method affects all data labels in the layer. To set the style for one particular data set only, use
DataSet.setDataLabelStyle.
Data labels are text used label data points in the layer. Different layer types put data labels in different positions. For example, in a bar chart, data labels are put at the internal end of the bar. For a line chart, data labels are put above the data points.
For some chart types, the position of the data labels can be manipulated by calling the
TextBox.setAlignment method of the
TextBox object returned by the setDataLabelStyle method.
See
Font Specification for details on various font attributes.
A
TextBox object representing the prototype of the data labels. This may be used to fine-tune the appearance of the data labels.
© 2017 Advanced Software Engineering Limited. All rights reserved.