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

Can the RadWinLossSparkline plus/minus color be set?

1 Answer 53 Views
Sparkline
This is a migrated thread and some comments may be shown as answers.
Robert Smyth
Top achievements
Rank 1
Robert Smyth asked on 02 Jul 2011, 11:43 AM
Hi,

I'm using RadWinLossSparkline and want minus values to be read and postiive values to be green. Can I do this?

Thx

Rob Smyth

1 Answer, 1 is accepted

Sort by
0
Sia
Telerik team
answered on 06 Jul 2011, 11:29 AM
Hi Robert Smyth,

You need to set the exposed NegativePointBrush and ItemFill properties as follows:

<telerik:RadWinLossSparkline  Margin="10,0"
                    Grid.Row="2"
                    x:Name="Sparkline1"
                    XValuePath="Date"
                    YValuePath="Value"
                    ShowAxis="True"  
                    ShowNegativePointIndicators="True"
                    NegativePointBrush="Red"
                    ItemFill="Green"/>

All the best,
Sia
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Sparkline
Asked by
Robert Smyth
Top achievements
Rank 1
Answers by
Sia
Telerik team
Share this question
or