LinearAxis labels Format

Thread is closed for posting
2 posts, 1 answers
  1. Hk
    Hk avatar
    10 posts
    Member since:
    Jul 2017

    Posted 18 Jul 2017 Link to this post

    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.
  2. Answer
    Nikolay Iliev
    Admin
    Nikolay Iliev avatar
    351 posts

    Posted 18 Jul 2017 Link to this post

    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.
Back to Top