ColumnSparkline not aligned with TimeBar

2 posts, 0 answers
  1. Matteo
    Matteo avatar
    9 posts
    Member since:
    May 2012

    Posted 26 May 2017 Link to this post

    Hi, I have a strange issue with the TimeBar control:

    if I put a RadLinearSparkline inside of it everything works as exected, but if I try replacing the RadLinearSparkline with a RadColumnSparkline, the content doesn't match the timeline anymore. Looks like there's some kind of margin that keeps accomulating until the columns are represented between two days.

    The image I've attached best represents the situation, I've also attached the code so that you can see that I'm not doing anything different when using the two controls.

    I really need to use the RadColumnSparkline, what can I do to make sure everything is aligned properly?

    Thanks in advance,


  2. Stefan
    Stefan avatar
    876 posts

    Posted 31 May 2017 Link to this post

    Hello Matteo,

    Thanks for the images provided.

    Since you clarified that the RadTimeBar is working as expected with RadLinearSparkline, I assume that the PeriodStart and PeriodEnd properties of RadTimeBar are synchronized with the start and end properties of the source of RadSparkline. If this is the case, you can try setting the ColumnLayoutMode property of RadColumnSparkline to Normal. Thus, the RadTimeBar should be controlling where the bars of the RadColumnSparkline will be positioned. The topic is discussed in details in the Sparkline columns not showed for correct time forum thread. Can you please check it out?

    Best Regards,
    Stefan X1
    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.
Back to Top