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

Crosshair label update

2 Answers 30 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Flemming
Top achievements
Rank 1
Flemming asked on 02 Sep 2016, 08:27 AM

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 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 06 Sep 2016, 09:29 AM
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.
0
Flemming
Top achievements
Rank 1
answered on 06 Sep 2016, 11:58 AM
Thanks - it works fine :)
Tags
ChartView
Asked by
Flemming
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Flemming
Top achievements
Rank 1
Share this question
or