Hi,
I'm using the stackedcolumnseries. I'm adding three series of StackedFragmentSeries type to the stackedcolumnseries. But all the three series dont have the same number of points. When I try to add the stackedcolumnseries to the datachart I'm having the following error:
System.NullReferenceException: Object reference not set to an instance of an object. at 34b2b069-d271-4fb9-9d8d-ae02d1df24ad__proxy.get_Group0_Value() at lambda_method(Closure , Object ) at Infragistics.FastReflectionHelper.GetPropertyValueFast(Type itemType, Object item) at Infragistics.FastReflectionHelper.GetPropertyValue(Type itemType, Object item) at Infragistics.FastItemColumn.ToDouble(Object item) at Infragistics.FastItemColumn.InsertRange(Int32 position, Int32 count) at Infragistics.FastItemColumn.Reset() at Infragistics.FastItemColumn.set_FastItemsSource(FastItemsSource value) at Infragistics.FastItemColumn..ctor(FastItemsSource fastItemsSource, String propertyName) at Infragistics.FastItemsSource.RegisterColumn(String propertyName) at Infragistics.Controls.Charts.AnchoredCategorySeries.PropertyUpdatedOverride(Object sender, String propertyName, Object oldValue, Object newValue) at Infragistics.Controls.Charts.StackedFragmentSeries.PropertyUpdatedOverride(Object sender, String propertyName, Object oldValue, Object newValue) at Infragistics.Controls.Charts.Series.<.ctor>b__3(Object o, PropertyUpdatedEventArgs e)
Is there an restriction that every stacked column should have the same number of points?
StackedFragmentSeries always uses ItemsSource from its parent, which is StackedColumnSeries in this case. Unless you purposely made the ItemsSource in such a way that each column has a different number of values, there will always be an equal number of points for each of the fragment series. Ultimately, each of the fragments expects to have the same number of points, whether they are valid or invalid (NaN, Infinity, etc)