Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2925
Stacked Area Series on TimeXAxis
posted

Is the combination Stacked Area Series on TimeXAxis not supported, and if not, why not?  Area Series in supported on TimeXAxis.  The page at https://ko.infragistics.com/help/winforms/datachart-series-requirements doesn't appear to include StackedAreaSeries.

Secondly, when stacking two series, and one value is negative, why doesn't the total include the negative value?  This seems like a bug to me.  E.g. 

public AccountValueHistory()
{
this.Add(new AccountDateInfo { date = new DateTime(2023, 1, 1), Acct1 = 0, Acct2 = 30 });
this.Add(new AccountDateInfo { date = new DateTime(2023, 2, 16), Acct1 = -50, Acct2 = 30});
this.Add(new AccountDateInfo { date = new DateTime(2023, 2, 25), Acct1 = 50, Acct2 = 60 });
this.Add(new AccountDateInfo { date = new DateTime(2023, 2, 25), Acct1 = 70, Acct2 = 60 });
}

produces:

The second date should be -20, not 30.

Parents
No Data
Reply
  • 34810
    Offline posted

    Hello Campbell,

    I have been investigating into the behavior you are seeing, and I have some information for you on this matter.

    It appears that there may have been an oversight that the stacked series were left out of the table that you linked in our documentation. I can confirm that the stacked series ca be used with a TimeXAxis with the exception of the StackedBarSeries as there is no TimeYAxis.

    Regarding the behavior you are seeing with negative value stacking, I have been discussing this behavior with my teammates and this behavior is expected and by design. The negative numbers will stack negatively, and the positive numbers will stack positively, using zero as the “reference point.”

    Please let me know if you have any other questions or concerns on this matter.

Children