How to get a percentage value when using grouping and an aggregator function

2 posts, 0 answers
  1. Jonathan
    Jonathan avatar
    15 posts
    Member since:
    Dec 2014

    Posted 26 Feb 2015 Link to this post

    Hi there,

    I'm using a RadChart to create some bar graphs of the total number of projecs per project type. I'm using a group descriptor to group the data:

        <telerikCharting:GroupingSettings ShouldCreateSeriesForLastGroup="True">
                <telerikCharting:ChartGroupDescriptor Member="ProjectType"/>

    My item mappings looks like this:

        <telerik:ItemMapping FieldName="ProjectType" DataPointMember="XCategory" />
        <telerik:ItemMapping FieldName="Name" DataPointMember="YValue" AggregateFunction="Count" />

    I'm attaching a screenshot showing what this currently looks like. What I want though, is to show the percentages of each category in addition to the number of projects. I don't know ahead of time how many project types will be included in the data being graphed.

    I appreciate any help I can get with this.

  2. Peshito
    Peshito avatar
    522 posts

    Posted 02 Mar 2015 Link to this post

    Hi Jonathan,

    I noticed that you have opened another forum thread regarding the same issue. In order for both sides to follow i would suggest to keep the conversation in a single thread.

    I am providing a link to the other forum post where my answer can be found.


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top