Grid Line Overflow

3 posts, 1 answers
  1. Anatoly Chekh
    Anatoly Chekh avatar
    86 posts
    Member since:
    Apr 2010

    Posted 10 Jan 2011 Link to this post

    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. Answer
    Sia
    Admin
    Sia avatar
    766 posts

    Posted 13 Jan 2011 Link to this post

    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>>
  3. Anatoly Chekh
    Anatoly Chekh avatar
    86 posts
    Member since:
    Apr 2010

    Posted 14 Jan 2011 Link to this post

    Thanks a lot!
Back to Top