Formatting Series DataLabelsColumn for Telerik Reporting Chart

9 posts, 0 answers
  1. Sasan
    Sasan avatar
    11 posts
    Member since:
    Jan 2009

    Posted 02 Nov 2010 Link to this post

    Hi,
      I have set up a chart in Telerik with two series.  For each series, I am setting the series.datalabelscolumn to a column in my data.  I would like to format these values.  I have tried searching changing the series.DefaultLabelValue, but nothing seems to be happening.  I think that when I am changing the defaultlabelvalue, it is changing my chart y-value that would normally be displayed to the right of my bar chart item, not the column that I am setting it to.  Can you provide me with any guidance?  Thanks.
  2. Massimiliano Bassili
    Massimiliano Bassili avatar
    323 posts
    Member since:
    May 2006

    Posted 04 Nov 2010 Link to this post

    Sasan, check this blog post written long time ago for the RadChart control but applicable for the chart item as well: Formatting RadChart Labels.

    Cheers!
  3. DevCraft banner
  4. Sasan
    Sasan avatar
    11 posts
    Member since:
    Jan 2009

    Posted 04 Nov 2010 Link to this post

    Thanks for responding.  I have seen that blog entry before, but it doesn't really relate to my problem.  It discusses ways to format the defaultlabelvalue, but does not address the situation when you have assigned a database column to series.datalabelscolumn.  If I allow the chart to display the y values next to my bars in my bar chart, the defaultlabelvalue formatting applies fine.  The problem is that when I have assigned a database column, the formatting will not apply to that.
  5. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 09 Nov 2010 Link to this post

    Hi Sasan,

    Indeed you are correct and this behavior is a known limitation. For the time being a possible approach is creating the chart programmatically and setting the Label.TextBlock.Text for each item. You can see sample code in the following help article: Data Binding Chart to a Generic List of Objects.

    Best wishes,
    Steve
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. paul
    paul avatar
    2 posts
    Member since:
    Nov 2010

    Posted 18 Nov 2010 Link to this post

    I am having the same issue, but I'm using a cube datasource.  I've used the FORMAT_STRING in my MDX statement but it doesn't seem to hold when I put it in the label.  The report ignoring any FORMAT_STRING syntax in the MDX query?
  7. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 24 Nov 2010 Link to this post

    Hello Paul,

    We're not exactly sure what you're after and where the problem might be without your MDX query. It would be best if you provide us with your query or a sample runnable project that shows the behavior you've encountered.

    All the best,
    Steve
    the Telerik team
    Get started with Telerik Reporting with numerous videos and detailed documentation.
  8. Mohammed
    Mohammed avatar
    87 posts
    Member since:
    Aug 2011

    Posted 08 Mar 2013 Link to this post

    Hi Steve,
    I had like hour hitting my head why DefaultLabelValue not working while i have DataLabelCoulmn.
    I didn't catch this info in the documentation.
    can you please tell me what other features I can't get using the design mode and can get it using grammatically mode ?
    I know it is a general question but it would save a lot of time.
    thanks very much
    Regards,
    Mohammed
  9. Stef
    Admin
    Stef avatar
    3053 posts

    Posted 14 Mar 2013 Link to this post

    Hello Mohammed,

    The old charting mechanism provides a lot of customization options and specific settings for different chart types, bringing difficulty and confusion. This is one of the main reasons for us to unify the work with charts and introduce the Graph item. Find more info on the subject in the following blog posts:

    Impress users with new visualizations in Telerik Reporting Q1 2013
    Q1 2013 Webinar Follow Up - Impress Your End-Users with New Visualizations in Telerik Reporting. Manage Large Data Models with OpenAccess
    Digging into the Telerik Reporting Graph Item - structure
    Digging into the Telerik Reporting Graph Item - Connecting to data

    Still you may find basic information about using the old Chart item in our online help:

    In addition, you can find attached a sample report illustrating the programmatic flexibility the Chart item offers.

    Let us know if you have any concerns or questions that we can help you with.

    Kind regards,

    Stef
    the Telerik team

    Telerik Reporting Q1 2013 available for download with impressive new visualizations. Download today from your account.

  10. Mohammed
    Mohammed avatar
    87 posts
    Member since:
    Aug 2011

    Posted 15 Mar 2013 Link to this post

    thanks Stef  i got some details about the graph item
Back to Top
DevCraft banner