Chart customization for android

Thread is closed for posting
3 posts, 0 answers
  1. Gustavo
    Gustavo avatar
    12 posts
    Member since:
    Jun 2014

    Posted 25 Jan Link to this post

    I would like to know if it is possible to customize the nativescript-pro-ui chart, I want to remove the zeros after the comma where it is marked in red.

    I know that this is the standard customization for android but I wanted to know if it is possible to customize to let ios equal that does not show the zeros after the comma.
  2. Nikolay Iliev
    Admin
    Nikolay Iliev avatar
    351 posts

    Posted 25 Jan Link to this post

    Hello Gustavo,

    Yes, you can remove the numbers after the decimal point by using labelFormat property.

    For example, let's assume we are working on this example.
    By default, the chart will be rendere4d with a precision of two numbers after the decimal point as shown here.

    To remove the zeros we can apply the labelFormat property as follows
    <chart:BarSeries.verticalAxis >
        <chart:LinearAxis labelFormat="%.0f"/>
    </chart:BarSeries.verticalAxis>


    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.
  3. Gustavo
    Gustavo avatar
    12 posts
    Member since:
    Jun 2014

    Posted 25 Jan in reply to Nikolay Iliev Link to this post

    It worked, thanks a lot for the help Nikolay.
Back to Top