RadLinearSparklines in RadTimeBar

3 posts, 0 answers
  1. Ben
    Ben avatar
    2 posts
    Member since:
    May 2011

    Posted 13 Jun 2012 Link to this post


    Is the following possible:

    I'd like to add multiple horizontal RadLinearSparkLines to my RadTimeBar.
    The width of each line is determined by an end date and a start date on the X-axis.
    The Y-axis is only used to position the different RadLinearSparkLines 
    When you zoom in or out in the RadTimeBar, the RadLinearSparkLines should grow/shrink accordingly (keeping them between the end date and start date).

    Possible or not?


  2. Lancelot
    Lancelot avatar
    251 posts
    Member since:
    Jul 2012

    Posted 14 Jun 2012 Link to this post

    Hi Ben,

    What you are asking is not supported by the control. However, you could try to create a custom style that would bind the thickness of the sparkline to the current value of the position in which it is above. This link will bring you to the documentation on the visual structure of the control.

    This is not an easy thing to accomplish, but you can learn more about the ControlTemplate here. Also, go to the overview documentation and learn more on how the RadTimeBar functions and what it is designed for by going here.

    What I can recommend doing is using a different control to visualize the multiple sparklines. RadGridView is designed for this type of data presentation, you can find a demonstration of it in action here. Go through the examples by clicking on the "Next Example" button.

    Good luck,
  3. DevCraft banner
  4. Tsvetie
    Tsvetie avatar
    1517 posts

    Posted 18 Jun 2012 Link to this post

    Hi Ben and Lancelot,

    Actually, adding two or more sparklines as content of the RadTimeBar control is not a problem. Have a look at this demo - http://demos.telerik.com/silverlight/#TimeBar/Gallery/CombinedVisualization. I believe it demonstrates exactly what you describe.

    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top