This is a migrated thread and some comments may be shown as answers.

LinearAxis labels Format

1 Answer 196 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Hk
Top achievements
Rank 1
Hk asked on 18 Jul 2017, 10:20 AM

I want to customize LinearAxis labels. I found article which shows LinearAxis has property named "labelformat" in link "http://docs.telerik.com/devtools/nativescript-ui/api/classes/linearaxis.html#labelformat".

But i can not see any detailed document for how to format label e.g.Show only integer value/Show decimal values with 2(or 1 or 3) precision values ONLY/show value in percentage etc.Kindly provide  Document/Demo/Code for same.

I am using NativeScript with Angular2.

Thank You.

1 Answer, 1 is accepted

Sort by
0
Accepted
Nick Iliev
Telerik team
answered on 18 Jul 2017, 11:38 AM
Hi Harsh,

To format the output you can use this specification.
For example, to show float number with 3 digits precision you do the following
labelFormat="%.3f"


Regards,
Nikolay Iliev
Progress Telerik
Did you know that you can open private support tickets which are reviewed and answered within 24h by the same team who built the components? This is available in our UI for NativeScript Pro + Support offering.
Tags
Chart
Asked by
Hk
Top achievements
Rank 1
Answers by
Nick Iliev
Telerik team
Share this question
or