Chart: Labels

In this article, you will learn to use the labels in Telerik Chart for NativeScript: how to use the labels for the series and for the axes and how to customize them.

Series Labels

All series have their default labels. In order to display them, you simply need to set the showLabels property of the series to true.

Axes Labels

All axes have their default labels. They are visible by default. In order to display or hide them, you simply need to use the showLabels property of the axis.

Customization

All axes have properties which provide various customization options for the labels:

  • labelTextColor: used to change the color of the text in the label.
  • labelSize: used to change the size of the text in the label.
  • labelMargin: used to change the margins of the label.
  • labelFormat: used to change the format string of the text in the label.

References

Want to see this scenario in action?
Check our SDK examples repo on GitHub. You will find this and many other practical examples with NativeScript UI.