Having trouble getting help?
Contact Support
Contact Support
Range Band in Xamarin Sparkline (SfSparkline)
8 Jan 20251 minute to read
This feature is used to highlight a particular region in the sparkline along Y axis.
-
RangeBandStart
- used to configure the start range band value in Y axis. -
RangeBandEnd
- used to configure the end range band values in Y axis. -
RangeBandColor
- used to change the color for range band.
<sparkline:SfLineSparkline ItemsSource="{Binding Data}"
YBindingPath="Performance"
RangeBandStart="4000"
RangeBandEnd="1000"
RangeBandColor="Green">
</sparkline:SfLineSparkline>
SfLineSparkline lineSparkline = new SfLineSparkline()
{
YBindingPath = "Performance",
ItemsSource = viewModel.Data,
RangeBandStart = 4000,
RangeBandEnd = 1000,
RangeBandColor = Color.FromRgba(0, 255, 0, 100)
};