Crosshair label update

3 posts, 0 answers
  1. Flemming
    Flemming avatar
    12 posts
    Member since:
    Aug 2016

    Posted 02 Sep 2016 Link to this post

    I have a live chart with a DateTimeContinuousAxis axis and a crosshair.

    When new data arrives and the chart area scrolls the crosshair info does update until the mouse is moved.

    Is there a way to update the crosshair labels from code?

    /Flemming Rosenbrandt

  2. Martin Ivanov
    Admin
    Martin Ivanov avatar
    1352 posts

    Posted 06 Sep 2016 Link to this post

    Hello Flemming,

    In order to update the crosshair labels you can reset their visibility.
    this.crosshairBehavior.VerticalLineLabelVisibility = Visibility.Collapsed;
    this.crosshairBehavior.VerticalLineLabelVisibility = Visibility.Visible;
    this.crosshairBehavior.HorizontalLineLabelVisibility = Visibility.Collapsed;
    this.crosshairBehavior.HorizontalLineLabelVisibility = Visibility.Visible;

    I hope this helps.

    Regards,
    Martin
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. Flemming
    Flemming avatar
    12 posts
    Member since:
    Aug 2016

    Posted 06 Sep 2016 in reply to Martin Ivanov Link to this post

    Thanks - it works fine :)
Back to Top