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

[Solved] Chart customization for android

2 Answers 78 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.
Gustavo
Top achievements
Rank 1
Gustavo asked on 25 Jan 2018, 01:55 PM
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 Answers, 1 is accepted

Sort by
0
Nick Iliev
Telerik team
answered on 25 Jan 2018, 03:45 PM
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.
0
Gustavo
Top achievements
Rank 1
answered on 25 Jan 2018, 05:20 PM
It worked, thanks a lot for the help Nikolay.
Tags
Chart
Asked by
Gustavo
Top achievements
Rank 1
Answers by
Nick Iliev
Telerik team
Gustavo
Top achievements
Rank 1
Share this question
or