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

Annotations on LineSeries graph

8 Answers 90 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mandar
Top achievements
Rank 1
Mandar asked on 13 Mar 2014, 10:33 PM
I have a LineSeries graph that displays multiple line series. I want to display a series name next to each LineSeries at the beginning of the series. If I understand correctly Telerik currently doesn't have a way to show annotations on the graph. Am I right? So is there any other way to display a text next to the LineSeries itself. I don't want to use legenf. To explain to you what we are looking for I have attached a Sample.pdf. In this screenshot you can see that at the start of each series there is a text like for eg: "I", "II", "III", "aVR", "aVL", "aVF", "V1","V2", "V3" etc. Is there any way to do this?  I read somewhere that I could use DataPointLabelConditionalFormatting for this purpose but I don't know how to use it. Anyone have any ideas?

8 Answers, 1 is accepted

Sort by
0
Mandar
Top achievements
Rank 1
answered on 14 Mar 2014, 07:05 PM
Can someone help please? I need this urgently..any help is much appreciated
0
Ivan Hristov
Telerik team
answered on 18 Mar 2014, 10:48 AM
Hi Mandar,

Yes, you should use DataPointLabelConditionalFormatting if you want to control the visibility of your data point labels based on some conditions. For example, if all of your series start from the same position on your X axis, your Conditional Formatting Rule Filter would look like this:
=Fields.XPosition = Exec("yourGraphName", Min(Fields.XPosition))

If your scenario requires more advanced approach, you can write an User Function to determine if a label should be visible or not and display it just once per series.

Hope it helps.

Regards,
Ivan Hristov
Telerik
 

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

 
0
Mandar
Top achievements
Rank 1
answered on 19 Mar 2014, 12:25 AM
Hi Ivan,

Thanks for your reply. In my case each line series doesn't start at the same X position...each one actually starts at different (X,Y) coordinate position. And also I don't want to show data point on the graph but I want to show a label at the start of each line series. This label can be considered as the name of each series so its a string. How do I write a UserFunction that shows a given string just once per series?
0
Accepted
Ivan Hristov
Telerik team
answered on 19 Mar 2014, 02:20 PM
Hi Mandar,

The conditional formatting will control the datapoint labels visibility, not the datapoints' visibility. The idea is to make invisible all the labels that come after the first one. You can use the Exec data function scoped to a series group in order to determine which one is the first value of a current series.

Please find attached a sample .trdx definition that shows how such a graph could be done. Although it uses only static data, it is connected to the AdventureWorks sample database, so you may need to reconfigure the SqlDataSource component according to your MS SQL server settings.

Regards,
Ivan Hristov
Telerik
 

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

 
0
Mandar
Top achievements
Rank 1
answered on 19 Mar 2014, 08:34 PM
Hi Ivan,

This was a good tip. Thanks for your help! I have one more question regarding showing data from data source on report headers. I have objectdatasource created using C# class that's bound to Report DataSource. But when I bind field on report header using expression the fields don't show values. Should I create a new thread for this issue? Or can you answer on the same thread..whatever your process is I will follow.
Please remember that we are close to finishing evaluation for your reporting product and we need your help to make that final decision. So sooner I can get answers to these issue the sooner we can purchase.
0
Ivan Hristov
Telerik team
answered on 20 Mar 2014, 09:44 AM
Hello Mandar,

We're glad we helped you solve your previous issue. However, since your current question is not related to the original thread topic, it would be good to start a new forum thread about it. This way you will help us and the users who search the forums to find the information they need faster and more efficiently.

Anyway, without having some more information about your current issue, we are unable to give you a proper answer. As a guess, please make sure that your textboxes and/or report header do not get invisible due to improper styling, conditional formatting or expression you are using.
If you still have problems, please start a new forum thread or a support ticket and send us a runnable example of your report so we could test it on our side.
 
Regards,
Ivan Hristov
Telerik
 

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

 
0
Mandar
Top achievements
Rank 1
answered on 20 Mar 2014, 11:37 AM
Hi Ivan,

I will create a new post. Thanks for help

- Mandar
0
Mandar
Top achievements
Rank 1
answered on 24 Mar 2014, 03:21 PM
Hi Ivan,

As suggested by you I have created a support ticket(799571) for my new question of how to make data binding work in report headers. I will appreciate your help.

Thanks
Tags
General Discussions
Asked by
Mandar
Top achievements
Rank 1
Answers by
Mandar
Top achievements
Rank 1
Ivan Hristov
Telerik team
Share this question
or