TimeBar, ChartView & MVVM

4 posts, 0 answers
  1. Rob
    Rob avatar
    6 posts
    Member since:
    Sep 2015

    Posted 02 Oct Link to this post

    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!

  2. Rob
    Rob avatar
    6 posts
    Member since:
    Sep 2015

    Posted 03 Oct Link to this post

    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. 
  3. Martin Ivanov
    Admin
    Martin Ivanov avatar
    1410 posts

    Posted 05 Oct Link to this post

    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.
  4. Rob
    Rob avatar
    6 posts
    Member since:
    Sep 2015

    Posted 05 Oct Link to this post

    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!

Back to Top