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

display category names instead of percentage or value

2 Answers 168 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.
Pacôme
Top achievements
Rank 1
Pacôme asked on 13 Nov 2017, 09:54 AM

Hello, 

I'm implementing charts with nativescript telrik UI and I'm facing a problem : 

There is a showLabels property that displays valueProperty on the donut slices, and I want the legendLabel so I don't have to display the legend.
I want to display the name of the categories instead of the number or percentage of each category.
Is there a way I can achieve that ?

Thank you for considering that issue.

2 Answers, 1 is accepted

Sort by
0
Nick Iliev
Telerik team
answered on 13 Nov 2017, 11:06 AM
Hi Pacome,

The source for your Pie chart Label is always the source property set via valueProperty.
As basically the PieChart is the actual graph that renders the pie slices based on that value, we might think of the slices as
the data points in the Line series or in the Scatter series. That said there is no option at that very moment to render other value than the valueProperty used to create the PieChart from its value source. We can always use both and labels and style them accordingly. An advanced styling of PieChart series can be found here.

Meanwhile, you can post a feature request in this repository so that the developer's team can take a look at it and determine if such functionality can be achieved.


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
Pacôme
Top achievements
Rank 1
answered on 14 Nov 2017, 08:54 AM
Hello Nikolay,

thank you for your response, we will review or choice of chart or add a legend.
Tags
Chart
Asked by
Pacôme
Top achievements
Rank 1
Answers by
Nick Iliev
Telerik team
Pacôme
Top achievements
Rank 1
Share this question
or