draw custom line over data series

6 posts, 0 answers
  1. Mago
    Mago avatar
    7 posts
    Member since:
    Jun 2012

    Posted 16 Nov 2010 Link to this post

    Hello,

    I am requested to draw a vertical line over a data series in a chart when the left mouse button is pressed. The line must be drawn depending on the closest X Axis value to the click. So far my approach was using the CustomLine, which is working perfectly, but I must draw this line over the data series not behind.
    Also I am interested to highlight, for example surrounding the label text with a rectangle, only one  X Axis Label. The one to which the drawn line corresponds.
  2. Mago
    Mago avatar
    7 posts
    Member since:
    Jun 2012

    Posted 16 Nov 2010 Link to this post

    I really need an answer for this problem guys.
    I'm thinking of using a BarSeries insted of the CustomLine and set the desired DataPoint value to double.PositiveInfinite, although this is not the solution I want. 
    And still I need an answer regarding the possibility to change the style of only one Axis Label. If it is possible please tell me how because it drives me mad. I can not find anything on the Internet about this.

    Thank You.
    Waiting for an answer!
  3. Sia
    Admin
    Sia avatar
    745 posts

    Posted 18 Nov 2010 Link to this post

    Hi Mago,

    Can you please check the approach described in this forum topic and tell us if this is appropriate solution in your scenario? Having the ChartArea retemplated you can put the annotations layer on top.

    Regarding your second question, unfortunately you cannot change the style of a specific axis label with the current version of RadChart. This issue is already logged in our public issues tracking system and you can track its progress there.

    Regards,
    Sia
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  4. Mago
    Mago avatar
    7 posts
    Member since:
    Jun 2012

    Posted 19 Nov 2010 Link to this post

    Thank You for your answer. That was indeed what I wanted. Sorry for not finding it myself.
    Also I'm curious, Is it possible to enlarge only one point mark (the one being selected) in a line series?
  5. Sia
    Admin
    Sia avatar
    745 posts

    Posted 19 Nov 2010 Link to this post

    Hi Mago,

    Please find attached a sample project which demonstrates one possible way for changing the size of one specific clicked point mark. I hope this helps.

    Greetings,
    Sia
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  6. Mago
    Mago avatar
    7 posts
    Member since:
    Jun 2012

    Posted 22 Nov 2010 Link to this post

    Hello,

    Yes this helped a lot. Thank You!
Back to Top