4.6. Data label display

You can determine the number of data labels to display in your charts and customize the appearance of the data labels from the settings side pane. You can also configure a percentage to display outlier values. Let's look at these options in detail.

Data label settings can vary based on the chart type.

1. Value display

You can define the number of data labels to render from options like All, None, Min+Max, First+Last, Nth label, etc. For Nth label, an additional Interval option is enabled. You can specify the interval between displaying labels. In the example, we've assigned an interval of 3, which means every 3rd bar will have a data label.

Data labels will not be displayed if the data categories are too close to each other and the data label cannot fit in the available space.

2. Variance display

You can customize the variance labels if you have charts with comparative measures for which the variance has been plotted. Similar to value display, you can choose from options like All, None, Min+Max, First+Last, Nth label, etc.

3. Outliers

You can display the data points that deviate from the overall trend or average value by selecting the outlier option. Use the Outlier percentage textbox to define a threshold for an outlier based on percentage deviation i.e. if the difference between two consecutive data labels is more than the specified threshold, the point will be plotted as an outlier. You can also choose a color to highlight the outlier values - in this example, we have highlighted the outliers in red.

4. Label type

You can display tooltip measures along with the data labels by selecting the measures from the dropdown.

5. Position

You can set the position of the data labels with respect to the chart. You can choose from options like Outside, Inside - Top, Inside - Center, Inside - Bottom.

This option applies only to bar charts.

6. Orientation

When the data labels are rendered inside the bars, you can specify the orientation.

7. Bar overlap

When the bar overlap option is enabled, data labels will dynamically be plotted inside the bars on canvas resize, thus giving maximum space on the canvas to plot the chart.

8. Allow overlap

Enable this property if the data label should be displayed even if it overlaps the markers. If this property is disabled, the data labels that overlap the target or additional target markers will not be displayed.

This option applies only to bullet charts.

9. Contrast color

Enabling this property ensures that the data label color contrasts the chart color and the data labels are clearly visible. The label color is set to black when this property is disabled.

The contrast color option can be enabled only when Display settings > Canvas > Auto color is turned off. When auto color is enabled, the font color is automatically set to contrast with the background.

10. Font

You can set a custom font color, specify the size, and whether the font should be bold/italicized.

Custom font colors are enabled only when the Contrast color option is disabled.

11. Offset

You can configure the offset position of the data labels. Positive offsets will move the label downwards and negative offsets will move it upwards.

Offsets can be in the range of -100 to 100.

12. Background

You can assign a background color for data labels. We have set the background color to grey in the example.

13. Individual measure settings

You can tailor the data labels for each measure when you plot line charts. Notice how the data labels for each of the measures is rendered based on the individual configurations.

Last updated