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

Grid Line Overflow

2 Answers 73 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Anatoly Chekh
Top achievements
Rank 1
Anatoly Chekh asked on 11 Jan 2011, 12:18 AM
Hello

I have a question: Is there a way to draw custom grid line over the chart (i.e. bar)? Bars get much place and line is not visible very good (it's paint as with dashed style).

I use following way to create line:

CustomGridLine customGridLine = new CustomGridLine
                                                    {
                                                        YIntercept = DateTime.Now.Ticks - _delta,
                                                        Visibility = Visibility.Visible,
                                                        Stroke = new SolidColorBrush(Colors.Black),
                                                        StrokeThickness = 3
                                                    };
_radChart.DefaultView.ChartArea.Annotations.Add(customGridLine);

Thanks, Anatoly Chekh.

2 Answers, 1 is accepted

Sort by
0
Accepted
Sia
Telerik team
answered on 13 Jan 2011, 10:08 AM
Hi Anatoly Chekh,

You need to re-template your Chart Area in order to position the custom grid lines over the chart.  Please check the attached project for reference.

Best wishes,
Sia
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Anatoly Chekh
Top achievements
Rank 1
answered on 14 Jan 2011, 10:14 AM
Thanks a lot!
Tags
Chart
Asked by
Anatoly Chekh
Top achievements
Rank 1
Answers by
Sia
Telerik team
Anatoly Chekh
Top achievements
Rank 1
Share this question
or