You use labels to display texts for data series or points in a graphic.
Labeling a data series
You label a data series using CL_CU_VALUES.
You label a point in a data series using CL_CU_POINT.
If the attribute CL_CU_VALUES=>CO_LABEL_AUTO = GFW_FALSE the text for the label is taken from the data container. If this attribute = GFW_TRUE then the label text depends on the setting in CO_LABEL_TYPE (for example, a value, percentage, category and so on).
Data series: You have already created an instance of a data series (CL_CU_VALUES).
Point: You have already created an instance of a point (CL_CU_POINT).
To set a display context for the label use the attribute CO_LABEL_CONTEXT in CL_CU_VALUES or CL_CU_POINT as appropriate.
To specify the position of the label use the attribute CL_CU_VALUES=>CO_LABEL_POSITION. The position determines where the label appears in relation to the data series.
To align the label use the attributes CL_CU_VALUES=>CO_LABEL_H_ALIGNMENT / CO_LABEL_V_ALIGNMENT. The alignment determines where the label appears in relation to the small text field that contains the text.