How to add more label to the column in HtmlChart?

5 posts, 1 answers
  1. LamKhoa
    LamKhoa avatar
    92 posts
    Member since:
    Jun 2011

    Posted 27 Sep 2012 Link to this post

    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
  2. Answer
    Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 28 Sep 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Rob
    Rob avatar
    27 posts
    Member since:
    Oct 2012

    Posted 09 Oct 2012 Link to this post

    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.
  5. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 10 Oct 2012 Link to this post

    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.
  6. Rob
    Rob avatar
    27 posts
    Member since:
    Oct 2012

    Posted 10 Oct 2012 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017