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://es.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.
That fixed it, thank you for your help. :)
Hello Campbell,
I have been investigating into the sample project you provided, and if I change the CategoryXAxis used in the “CreateNumericTimeSeriesChart” method to be a TimeXAxis and try to immediately run, I can reproduce the hang that you are seeing. This is because there is an additional property that is necessary for the TimeXAxis to work correctly that does not exist on the CategoryXAxis named “DateTimeMemberPath.” So, to switch the CategoryXAxis to TimeXAxis the following:
var xAxis = new CategoryXAxis{ Label = "date", DataSource = dt2 };
…needs to become:
var xAxis = new TimeXAxis{ Label = "date", DataSource = dt2, DateTimeMemberPath="date" };
This appears to prevent the UI hanging behavior on my end.
Regarding the summation, if you would like to see an option to summarize the positive and negative values together potentially implemented on the stacked series, I would recommend suggesting a new product idea for this at our Windows Forms Ideas Site, here: https://es.infragistics.com/community/ideas/i/ultimate-ui-for-windows-forms. This will place you in direct communication with our product management teams who plan and prioritize upcoming features and development based on community and user feedback.
Please let me know if you have any other questions or concerns on this matter.
Hi Andrew. Thanks for getting back to me.
Could you please take a look at the attached sample file. It works fine for me if I use a CategoryXAxis, but when I change this to a TimeXAxis, the UI hangs. I'm not sure what I'm doing wrong.
Regarding the summation, I'd have thought in almost all cases users would want to sum positive and negative values together. At the very least I think this should be an option. Could you put this forward as a feature request please? For example, if the graph shows the sum of two bank accounts, and one account is overdrawn and has -50 in it, and the other account has 30, your net worth at that time is -20. It just doesn't make sense to display this as 30.Thanks,Campbell
I can't seem to insert a zip, so here's a link: drive.google.com/.../view
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.”