display category names instead of percentage or value

3 posts, 0 answers
  1. Pacôme
    Pacôme avatar
    7 posts
    Member since:
    Nov 2017

    Posted 13 Nov Link to this post

    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. Nikolay Iliev
    Admin
    Nikolay Iliev avatar
    324 posts

    Posted 13 Nov Link to this post

    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 legendView 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.
  3. Pacôme
    Pacôme avatar
    7 posts
    Member since:
    Nov 2017

    Posted 14 Nov in reply to Nikolay Iliev Link to this post

    Hello Nikolay,

    thank you for your response, we will review or choice of chart or add a legend.
Back to Top