Hi Tom,
We have analyzed your requirement and you can achieve this requirement by using FastRangeAreaBitmapSeries as per the below code snippet.
Code snippet [XAML]:
|
<chart:FastRangeAreaBitmapSeries XBindingPath="XValue"
Low="YValue1"
High="YValue2"
ItemsSource="{Binding Data}"/> |
Code snippet [XAML]:
|
public class Model
{
public double XValue { get; set; }
public double YValue2 { get; set; }
public double YValue1 { get; set; }
}
public class ViewModel
{
..
public void GenerateData()
{
Data = new ObservableCollection<Model>();
Random rd = new Random();
for (int i = 0; i < 6; i++)
{
Data.Add(new Model()
{
XValue = i,
YValue2 = rd.Next(0, 50)
});
}
}
..
} |
We have prepared a sample based on this, please find the sample from the following location.
Output :
Note : FastRangeAreaBitmapSeries available from our 16.1.0.24. So, we recommend you to upgrade to this version to use this series type. Please refer our release notes in below link.
Please let us know if you have any queries.
Thanks,
Muneesh Kumar G