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

Pie-Chart - Extended Labels

1 Answer 76 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Andreas Müller
Top achievements
Rank 1
Andreas Müller asked on 12 Jul 2012, 08:03 AM
Hi

I'm using the HTMLCharts for the first time and it looks quite nice. Thanks for your work!

But after playing around a little bit I found that the functionality of the labels is quite limited. For a customer we had to generate a pie-chart with currently 17 elements (going to grow). Now, there are tow issues with that:

  1. Without definig the colors of each element explicitly there are elements sharing the same color.
  2. the labels of the elements show only the numeric value (OK with some formatting, but still only the numeric value)

Now, the second point is a real problem, as the graphic should not only show the value/percentage but also the name of the element. In fact, the chart should show the percentage of each customer on the company's turnaround. Imagine 20-30 customers... you just cannot tell them apart in the graphics. It would be nice if you could customize the label of each element...

Or, maybe I'm completely wrong and this can be done already. If so, I'd be happy to get to know how.


Regards,
Andy

1 Answer, 1 is accepted

Sort by
0
Accepted
Svetlina Anati
Telerik team
answered on 17 Jul 2012, 09:12 AM
Hello Andreas,

Thank you for the good words, we are glad that you find the new RadHtmlChart useful and nice!

Straight to your questions:

1) The colors which the chart uses for each skin are chosen to be consistent with other skins of RadControls in the suite and thus they are [redefined in advance and not generated on demand. Having predefined colors in advance requires to make a predefined set of colors, which is a particular number. For now we have 5 predefined colors and thus thy will start alternate again for more series - e.g the 6 pie segment will have the same color as the 1st, the 7th - the same as the second, etc. You are the first one who reports this and I see the point in your request. However, to add more predefined colors, we need to gather more feedback and thus I prepared a PITS item for that - you can find it below:

http://www.telerik.com/support/pits.aspx#/public/aspnet-ajax/11895

On a side not, we are also considering adding functionality to programmatically generate new colors based on predefined and once this is done, you will be able to have differently colored series no matter their count is bigger than the predefined set.

Until the above is available I suggest to use the BackgroundColor property and set explicit colors.

2) We agree that this is a needed functionality for a chart and we will add label templates in order to meet.This was already logged in our TODO but since you are not the first one who asks, I created a PITS for that too - you can find it below:

http://www.telerik.com/support/pits.aspx#/public/aspnet-ajax/11893

Thank you for the provided feedback, I updated your Telerik points for it.

I hope that my reply is detailed enough and helpful, let me know if any other questions or suggestions arise.

All the best,
Svetlina Anati
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Chart (HTML5)
Asked by
Andreas Müller
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or