Syncfusion AI Assistant

How can I help you?

Range Band in WPF Sparkline (SfSparkline)

4 May 20261 minute to read

The Range band feature is used to highlight the particular mentioned range along Y axis.

<Syncfusion:SfLineSparkline
     ItemsSource="{Binding UsersList}"
     BandRangeStart="2000"
     BandRangeEnd="-1000"
     RangeBandBrush="Green"
     YBindingPath="NoOfUsers">
 </Syncfusion:SfLineSparkline>
SfLineSparkline sparkline = new SfLineSparkline()
{
    ItemsSource = new SparkViewModel().UsersList,
    YBindingPath = "NoOfUsers",
    BandRangeStart = 2000,
    BandRangeEnd = -1000,
    RangeBandBrush = new SolidColorBrush(Colors.Green)
};

The following is the snapshot for range band.

Range-Band_img1