How to show a single percentage value in a pie chart

1 Answer 424 Views
Report Designer (standalone)
Steve
Top achievements
Rank 1
Iron
Steve asked on 01 Nov 2022, 05:20 PM

I have a dataset that is returning one row, with a field called [Percent of Total] the field is formatted like 0.75 (representing 75%)

I want to use this value in a pie chart with the pie chart filled 75% of the way, but I can't seem to figure out how to achieve this.
The chart builder in Telerik is not very user friendly...

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 04 Nov 2022, 01:01 PM

Hello Steve,

If I understood correctly, you would like a PieChart that has two series, one specified by the [Percent of Total] field, and the other to supplement to 100%.

If so, you need to introduce a second value that is '1 - [Percent of Total]', or '100 - [Percent of Total]' (in %).

I have attached a sample report that achieves this through a Report Parameter. Note that the DataSource for the Graph is assigned with Bindings to an array of values [Parameter.Value and 1- Parameter.Value] returned by our built-in Utility function Array.

Regards,
Todor
Progress Telerik

Brand new Telerik Reporting course in Virtual Classroom - the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products. Check it out at https://learn.telerik.com/.
Tags
Report Designer (standalone)
Asked by
Steve
Top achievements
Rank 1
Iron
Answers by
Todor
Telerik team
Share this question
or