Hello,
I have a stacked area chart that I am trying to populate. As far as I can tell via reverse engineering the data structure is totally different than with non-stacked graphs. For example normally I would use this line:
gdpSeriesMapping.ItemMappings.Add(new ItemMapping("GDP", DataPointMember.YValue));
and
RadChart1.ItemsSource = this.Data;
where this.Data is a class with exposed properties like "GDP"
According to the samples you instead use a List<int[]> or similiar. Well if this is true then I have to manually define my X Axis min & max values. So using the List<int[]> structure I can get my data to plot if I have AutoRange=true; But if I change it to false and manually define the X Axis (below) the data doesn't show?
#region Define/Clarify X Axis
RadChart1.DefaultView.ChartArea.AxisX.AutoRange =
false
;
RadChart1.DefaultView.ChartArea.AxisX.MinValue=TransDate.ToOADate();
RadChart1.DefaultView.ChartArea.AxisX.MaxValue=TransDate.ToOADate();
RadChart1.DefaultView.ChartArea.AxisX.Step = 1;
#endregion
Further I cannot seem to figure out how to filter the stacked area series. Again I would traditionally use a filter like:
RadChart1.FilterDescriptors.Add(new ChartFilterDescriptor("Country", typeof(string), FilterOperator.IsNotEqualTo, sourceCheckbox.Content));
but I am unsure how to name the Series member so it can then be found to apply / remove the filter.
So confirmation of the different data structure for the ItemsSource, manual X Axis missing data problem, and how to filter the stacked area chart series would be greatly appreciated.
THANK YOU
JB