Can the RadWinLossSparkline plus/minus color be set?

2 posts, 0 answers
  1. Robert Smyth
    Robert Smyth avatar
    18 posts
    Member since:
    Mar 2010

    Posted 02 Jul 2011 Link to this post

    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
  2. Sia
    Admin
    Sia avatar
    667 posts

    Posted 06 Jul 2011 Link to this post

    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!

  3. DevCraft banner
Back to Top