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

RadLinearSparklines in RadTimeBar

2 Answers 132 Views
Sparkline
This is a migrated thread and some comments may be shown as answers.
Ben
Top achievements
Rank 1
Ben asked on 13 Jun 2012, 02:31 PM
Hi,

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?

Greetings,
Ben


2 Answers, 1 is accepted

Sort by
0
Lancelot
Top achievements
Rank 1
answered on 14 Jun 2012, 09:04 PM
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,
Lancelot
0
Tsvetie
Telerik team
answered on 18 Jun 2012, 02:55 PM
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.

Regards,
Tsvetie
the Telerik team

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

Tags
Sparkline
Asked by
Ben
Top achievements
Rank 1
Answers by
Lancelot
Top achievements
Rank 1
Tsvetie
Telerik team
Share this question
or