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

Showing percentage in the Chart

3 Answers 1183 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Sanjeev
Top achievements
Rank 1
Sanjeev asked on 07 May 2013, 09:20 AM
please refer the  attached  sample chart 

I have a requirement in which we have to show a stacked column chart with two series
we want to show every category in the category axis  to be in a 100 % scale ,but in the data we will be sending only the absolute value not the percentage value, is it possible to achieve this ? if so please advice

3 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 07 May 2013, 01:46 PM
Hi Sanjeev,

I am not quite sure if I understand your scenario correctly - do you have in mind the value axis (not category axis)? If this is the case you should specify format for the valueAxis.labels (as shown in this online demo). If you are requesting a different functionality, please elaborate a bit more - this way I would be able to advice you further and provide concrete recommendations. Thank you in advance for your cooperation.
 
Kind regards,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Sanjeev
Top achievements
Rank 1
answered on 08 May 2013, 07:05 AM

Hi,

Thanks for your reply!!


I think its altogether a different functionality, because  the data for the chart contains nothing related to the percentage , while i expect the kendoChart to do the math and calculate  the percentage for 100 percent for every category and plot the graph accordingly, so that the label will show the actual value while the chart has been plotted in percentage.

The attached sample chart has 2 series (occupied,vacant) , the Category 'Cardiac Care' contains 134 occupied beds and 34 vacant beds, what we expect is we want the  kendo to calculate the total (168) to 100 % and plot the Occupied beds as 80% (approx) and the vacant beds to be 20% (approx)  while still allowing  the labels to shows their actual values not their percentage .

Is this functionality supported in kendo by default or is there any other way by which i can get this done?



0
Iliana Dyankova
Telerik team
answered on 08 May 2013, 02:52 PM
Hello Sanjeev,

Thank you so much for the detailed information. I am afraid your scenario is not supported in Kendo UI Chart at present, however the idea sounds good and I will suggest to send it as a feature request at our UserVoice portal. This way the community would be able to vote and comment it and if the suggestion gains popularity we will consider its implementation. 
 
Regards,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Charts
Asked by
Sanjeev
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Sanjeev
Top achievements
Rank 1
Share this question
or