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

How to add more label to the column in HtmlChart?

4 Answers 71 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
LamKhoa
Top achievements
Rank 1
LamKhoa asked on 27 Sep 2012, 04:56 PM
Hi,

Please take a look at the attaced pic, I can only display the percentage value (which is from the column "AverageScore" in the DataTable) on the column bar. I would like to add in some description label for each column (which is from the column "Description" in the same DataTable).

Is it possible to do it with HTMLChart? If not, What's about RadChart, is it possible to do so?

Thanks

Lamk

4 Answers, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 28 Sep 2012, 01:33 PM
Hello Lamk,

This feature will be available with the Q3 2012 release when the ClientTemplate property for the tooltips and series labels will be released.


Greetings,
Marin Bratanov
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.
0
Rob
Top achievements
Rank 1
answered on 09 Oct 2012, 01:40 PM
Hi Marin,

I think this may be the answer to a question I was going to post.

I've been going back and forth with how I implement my RadHTMLChart.

First I was adding a datasource and specifying datafields in the markup.  However, I wanted to set a Name for each item for the purpose of some javascript.  I couldn't figure out how to do that in that way but noted I could if I dynamically create items and add them to a series and then add that series to the pie chart control in the code behind.

However, I find that now I can't modify that label to be something other than the YValue.  I've tried adding a datasource anyway and then referencing a field but it still comes up undefined.

Is there a way I can modify this as is or will I have to wait for the Q3 release?

Thanks for your help.
0
Marin Bratanov
Telerik team
answered on 10 Oct 2012, 11:10 AM
Hello Robert,

The Q3 release is coming in about a week and it will provide a lot of improvements in the control - full databinding for pie charts so you do not have to create items programmatically and a ClientTemplate for the labels and tooltips in the items so you can add more columns from your datasource there. More information about the improvements we have made on the control is available in this blog post. I am sorry to say that for the time being all the desired functionality is not available. You can set the DataFormatString with data you have in the code-behind, but it will still be static and not per row.


Kind regards,
Marin Bratanov
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.
0
Rob
Top achievements
Rank 1
answered on 10 Oct 2012, 01:21 PM
Thanks Marin.

I'm creating a lot of gadgets for an application and I'm going to be using a lot of charting.  I'm implementing some things now with a promise of changes and refinement with the next quarter (and future) releases.

Thanks for clarifying what to expect soon.  I'm definitely attending a number of the webinars.
Tags
Chart (HTML5)
Asked by
LamKhoa
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Rob
Top achievements
Rank 1
Share this question
or