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

RadChart CustomGridLine X or Y Axis label?

4 Answers 80 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Pieter
Top achievements
Rank 1
Pieter asked on 27 Sep 2011, 11:40 PM
Hi there

I am currently using a CustomGridLine in one of my charts and have some questions about this object
 
1) Can a CustomGridLine display its correponding y-Axis value as a label on my chart?
2) Is it possible to bring the CustomGridLine to the "front" of the chart. I have a Bar Series and I would like the GridLine to be displayed on top.

Thanks
Pieter

4 Answers, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 30 Sep 2011, 03:15 PM
Hi Pieter,

1) Could you please elaborate a bit more on this? Sending us a sample image of what you want to achieve will be very helpful for us to provide you with a proper suggestions.
2) Currently showing the Annotations above the RadChart is not supported out-of-the-box. However to achieve it you should retemplate the default ChartArea style as shown here. You may find this discussed in our forum post.

Greetings,
Evgenia
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Michael
Top achievements
Rank 1
answered on 11 Oct 2011, 05:02 PM
Hi Evgenia

I need your help on this matter:
Currently I must create a report with an embedded Chart which must display horizontal gridlines (corresponding to Y axis) for certain values (not major or minor gridlines!). Please see attached file.

Short explanations: on X axis: time, on Y axis: weight (kg)

After one working day I couldn't find any solution.
Any help will be appreciated (an example would be great).

Thanks a lot!!
Dan
0
Michael
Top achievements
Rank 1
answered on 11 Oct 2011, 05:03 PM
PS:

The project is made in WPF.
Thanks
Dan
0
Evgenia
Telerik team
answered on 14 Oct 2011, 12:38 PM
Hi Dan,

You can use our Annotations (Custom GridLine or CustomLine) to achieve your scenario. For example if you want to have an Average line which should cross the average point in your data, you should find this average point in your data. If your datasource is a List for example or any generic you may use a LINQ Aggregator function to find the average amongst your elements.

Also as a side note - I would like to ask you to post your future questions in their corresponding Product forum. Since your question is related to RadChart for WPF - I suggest that we continue our further comunication on this there or in a new formal Support thread.

All the best,
Evgenia
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Tags
Chart
Asked by
Pieter
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Michael
Top achievements
Rank 1
Share this question
or