A few questions after playing with the Sparkline example here : C:\Program Files (x86)\Telerik\RadControls for WPF Q3 2010 SP1\Demos\Examples\BulletGraph
1. Can a RadColumnSparkline show the bars in a horizontal orientation? Default seems to be vertical - I didn't see a property to change orientation.
2. The examples all seem to bind to a DateTime on the X-Axis. Is it possible to bind to something like a string and if so what would happen?
Where your current example data looks like:
actual,Late arrivals,11/1/2004,1
actual,Late arrivals,12/1/2004,24
actual,Late arrivals,1/1/2005,32
What if I wanted to bind to NOTE: the date is replaced by a string (site name) value:
web ranking,Site 1, 1000
web ranking,Site 2, 2222
web ranking,Site 3, 4444
3. Do you have an example of how to do some of this XAML binding in C# code rather than XAML? In essence doing this type of thing in a non-xaml/dynamic way?
<telerik:GridViewDataColumn Header="actuals nov'04 - nov'05">
<telerik:GridViewDataColumn.CellTemplate>
<DataTemplate>
<telerik:RadColumnSparkline ShowFirstPointIndicator="True" ShowLastPointIndicator="True" ShowHighPointIndicators="True" ShowLowPointIndicators="True" ItemsSource="{Binding ActualMeasure}" XValuePath="Date" YValuePath="Value" Width="120" Height="20" />
</DataTemplate>
</telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>
4. I'm adding another question to the post:
I have 5 data points, but the chart is only showing 4 of the points. Like it is throwing out the lowest data point and not plotting it at all. Is that a function of telerik:RadColumnSparkline attribute?
actual,(Google) Day Spas in Houston,11/1/2004,100
actual,(Google) Day Spas in Houston,12/1/2004,75
actual,(Google) Day Spas in Houston,1/1/2005,72
actual,(Google) Day Spas in Houston,2/1/2005,77
actual,(Google) Day Spas in Houston,3/1/2005,66
<telerik:RadColumnSparkline ShowAxis="true" ShowLastPointIndicator="True" ShowFirstPointIndicator="True" ShowHighPointIndicators="True" ShowLowPointIndicators="True" ItemsSource="{Binding ActualMeasure}" XValuePath="Date" YValuePath="Value" Width="120" Height="20" />
1. Can a RadColumnSparkline show the bars in a horizontal orientation? Default seems to be vertical - I didn't see a property to change orientation.
2. The examples all seem to bind to a DateTime on the X-Axis. Is it possible to bind to something like a string and if so what would happen?
Where your current example data looks like:
actual,Late arrivals,11/1/2004,1
actual,Late arrivals,12/1/2004,24
actual,Late arrivals,1/1/2005,32
What if I wanted to bind to NOTE: the date is replaced by a string (site name) value:
web ranking,Site 1, 1000
web ranking,Site 2, 2222
web ranking,Site 3, 4444
<telerik:GridViewDataColumn Header="actuals nov'04 - nov'05">
<telerik:GridViewDataColumn.CellTemplate>
<DataTemplate>
<telerik:RadColumnSparkline ShowFirstPointIndicator="True" ShowLastPointIndicator="True" ShowHighPointIndicators="True" ShowLowPointIndicators="True" ItemsSource="{Binding ActualMeasure}" XValuePath="Date" YValuePath="Value" Width="120" Height="20" />
</DataTemplate>
</telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>
4. I'm adding another question to the post:
I have 5 data points, but the chart is only showing 4 of the points. Like it is throwing out the lowest data point and not plotting it at all. Is that a function of telerik:RadColumnSparkline attribute?
actual,(Google) Day Spas in Houston,11/1/2004,100
actual,(Google) Day Spas in Houston,12/1/2004,75
actual,(Google) Day Spas in Houston,1/1/2005,72
actual,(Google) Day Spas in Houston,2/1/2005,77
actual,(Google) Day Spas in Houston,3/1/2005,66
<telerik:RadColumnSparkline ShowAxis="true" ShowLastPointIndicator="True" ShowFirstPointIndicator="True" ShowHighPointIndicators="True" ShowLowPointIndicators="True" ItemsSource="{Binding ActualMeasure}" XValuePath="Date" YValuePath="Value" Width="120" Height="20" />