Suppose I have a the following class
I want to plot this on a RadChart using a seriesmapping, which I do like this.
Is there any way that I can include/exclude data points being plotted based on the value of 'Exclude'? I wish to be able to include/exclude certain points from the plotted line.
The only other solution I can think of is to scan through the collection and create a second collection just containing members which aren't excluded. This doesn't seem very efficient though.
public
class
DataRow
{
public
int
X {
get
;
set
; }
public
int
Y {
get
;
set
; }
public
bool
Exclude;
}
I want to plot this on a RadChart using a seriesmapping, which I do like this.
ObservableCollection<DataRow> SeriesSource =
new
ObservableCollection<DataRow>();
SeriesMapping series =
new
SeriesMapping();
series.ItemsSource = source;
series.ItemMappings.Add(
new
ItemMapping(
"X"
, DataPointMember.XValue));
series.ItemMappings.Add(
new
ItemMapping(
"Y"
, DataPointMember.YValue));
Is there any way that I can include/exclude data points being plotted based on the value of 'Exclude'? I wish to be able to include/exclude certain points from the plotted line.
The only other solution I can think of is to scan through the collection and create a second collection just containing members which aren't excluded. This doesn't seem very efficient though.