Data label customization
Last updated
Last updated
When we activate data labels in any of the Vitara charts, the data labels are displayed in shortened format by default.
To show the data labels in the same format as the metric’s data format, pick the Use Metric Formatting option from the data labels menu. The screenshot below was taken after enabling the Use Metric Formatting option.
When we enable data labels, by default vitara chart will display data labels in its own format i.e. short format. If we want to the values in this format we have to enable the use metric formatting option.
Below is the screenshot of the vitara column chart after enabling the use metric formatting. Now we can see the dollar sign in the data labels.
Note: When we enable the use metric formatting option in the data labels menu, the tooltip also will be displayed in the same format as the data labels.
To display axis labels in number format, first activate the utilize metric formatting option in the data labels menu, and then enable it in the axis labels menu. The screenshot below shows how to enable metric formatting in the axis labels menu.
We can modify the default data labels using text and dynamic macros for data. Below is the screenshot of the data labels editor window.
Hover the cursor over the ‘i’ symbol to see the available macros for any particular chart. Below is the screenshot.
In the editor window type ‘&’ character and you will see macro suggestions. Select the macros and click on ‘“Apply” tab.
For example, the default macros in the above screenshot is &[point.value], So the chart shows the metric value at each data-point. See the screenshot below:
Now we will use custom macros in this way &[point.metricName]: &[point.value], point.metricname is colored red. And the data labels will display this way now. See the screenshot below:
In this way, users can use either text or other macros or combination of both in many possible ways.
All vitara charts are added with the support to show the overlapping data labels. This feature is added in data labels tab with ‘Show Overlapping Labels’ checkbox.
For example, in line chart when you enable data labels, only few labels are shown on the chart respective to the space available between the datapoints. See the screenshot below:
Now, the new feature allows to forcefully show all the data labels. To do this, go to data labels tab and enable the ‘Show Overlapping Labels’ checkbox. See the screenshot below: