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

TimeBar, ChartView & MVVM

3 Answers 152 Views
TimeBar
This is a migrated thread and some comments may be shown as answers.
Rob
Top achievements
Rank 1
Rob asked on 02 Oct 2017, 07:43 PM

I'm trying (and failing) to set up a RadCartesianChart with a StepLineSeries where one axis is a DateTime, integrated with a RadTimeBar, as was outlined here: http://www.telerik.com/forums/synchronizing-chartview-and-timebar, except having the data for the StepLineSeries & RadTimeBar bound to a view model.

 

Is there any way I could get a sample with a RadCartesianChart and RadTimeBar using MVVM?

 

Thanks!

3 Answers, 1 is accepted

Sort by
0
Rob
Top achievements
Rank 1
answered on 03 Oct 2017, 11:45 AM
I was able to get my chart and timebar synced by digging a little more into the examples - however, I have a new question: if my Horizontal Axis is of type DateTimeContinuousAxis, how can I make it display labels in milliseconds when the chart is zoomed in? Currently, it only zooms down to seconds. 
0
Martin Ivanov
Telerik team
answered on 05 Oct 2017, 04:24 PM
Hello Rob,

You can use the MaxZoom property of the chart. Its default value is (100, 100) which means that you can zoom the original view 100 times.

Regards,
Martin Ivanov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Rob
Top achievements
Rank 1
answered on 05 Oct 2017, 04:45 PM

It actually turned out to be the time bar's MinZoomRange property that got it to display down to millisecond intervals - but your suggestion pointed me in the correct direction.

 

Thanks!

Tags
TimeBar
Asked by
Rob
Top achievements
Rank 1
Answers by
Rob
Top achievements
Rank 1
Martin Ivanov
Telerik team
Share this question
or