Hi,
I am trying to show a RadColumnSparkline within a TimeBar, but I haven't been able to achieve this.
I want to show some data per day like in the column visualization example, this is some sample code like the one that I am using:
public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); DateTime today = DateTime.Today; List<MyCost> data = new List<MyCost>() { new MyCost() { Cost = 1, MyDate=today }, new MyCost() { Cost = 2, MyDate= today.AddDays(1)}, new MyCost() { Cost = 3, MyDate=today.AddDays(2) }, new MyCost() { Cost = 4, MyDate=today.AddDays(3)}, new MyCost() { Cost = 5, MyDate=today.AddDays(4)}, }; this.DataContext = data; } } public class MyCost { public double Cost { get; set; } public DateTime MyDate { get; set; } }
<telerik:RadColumnSparkline x:Name="PART_SparkbarControl" HorizontalAlignment="Left" VerticalAlignment="Top" Height="48" Width="400" telerik:StyleManager.Theme="Office_Blue" ItemsSource="{Binding}" XValuePath="MyDate" YValuePath="Cost" />Lets say that the first date is 03/17/2016, so I want to show data from 03/17 to 03/21 with the values 1 to 5, I'd expect to see something like the first image but instead I get the bars like in the second image.
The data is not being shown in the desired date.
I am not sure if I am missing some configuration or what I am soing wrong.
