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

Formatting Series DataLabelsColumn for Telerik Reporting Chart

8 Answers 301 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sasan
Top achievements
Rank 1
Sasan asked on 02 Nov 2010, 06:05 PM
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.

8 Answers, 1 is accepted

Sort by
0
Massimiliano Bassili
Top achievements
Rank 1
answered on 04 Nov 2010, 08:19 AM
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!
0
Sasan
Top achievements
Rank 1
answered on 04 Nov 2010, 03:09 PM
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.
0
Steve
Telerik team
answered on 09 Nov 2010, 05:12 PM
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
0
paul
Top achievements
Rank 1
answered on 19 Nov 2010, 01:16 AM
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?
0
Steve
Telerik team
answered on 24 Nov 2010, 01:45 PM
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.
0
Mohammed
Top achievements
Rank 2
answered on 09 Mar 2013, 02:12 AM
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
0
Stef
Telerik team
answered on 14 Mar 2013, 09:09 AM
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.

0
Mohammed
Top achievements
Rank 2
answered on 16 Mar 2013, 02:10 AM
thanks Stef  i got some details about the graph item
Tags
General Discussions
Asked by
Sasan
Top achievements
Rank 1
Answers by
Massimiliano Bassili
Top achievements
Rank 1
Sasan
Top achievements
Rank 1
Steve
Telerik team
paul
Top achievements
Rank 1
Mohammed
Top achievements
Rank 2
Stef
Telerik team
Share this question
or