Hi,
I expect this is easy to do, but I can't find anything showing how to do it.
My data model contains a field, DueDate. I want to create a column chart showing the number of items due each day. I'm sure this must be possible, but can anybody point me in the right direction, please?
Thanks,
John
Hello John,
Thank you for your post. I have been looking into it and I can say that if you want to achieve such functionality you can use a Dictionary in order to have appropriate data structure. I have created a sample project for you showing how you can create such structure based on your data, which can be shown in the XamDataChart in the way you want. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Hi Stefan,
That's perfect! Thank you so much for your help.
Actually, I'm quite surprised the XamChart can't do this as a built-in feature. That's not meant as a criticism, just an observation.
Next question: if you plot 2 ColumnSeries on a CategoryXAxis, the columns appear side-by-side in each category. On a CategoryDateTimeXAxis, one column appears on top of the other, so if the top column has a greater value, you can't see the other column underneath. Can the former behaviour be duplicated on a CategoryDateTimeXAxis?
Thanks again for the answer,
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
Thanks for the reply. I see what you are saying. Isn't the CategoryDateTimeXAxis misnamed, then? I was going to ask what the difference is between that and a <non-Category>DateTimeXAxis, but I see there isn't one, so that answers that question! To me, if two bars appear in the same category, that implies that they occurred on the same day (in my example), but not which order they occurred in. I have got rouind it by using a simple CategoryXAxis, anyway.
Thanks for your help.
Our developers said that the date time axis is mainly used for continuous data, such as line, spline, area series. With a column series, if you display two columns with the same date time value side by side on a time axis, you are implying that one happened before the other, which wouldn't be true. Column-type series are best used with regular category axes.
Thanks Stefan, I appreciate your help.
I would have thought a SumBy or CountOf attribute on a DataSeries would be useful in all sorts of situations for producing summary charts, not necessarily just dates.
Regards,
I have logged this with development under ID: 150484 and I have also created a support ticket on your behalf: CAS-122036-G2Q5H6 and have linked the development issue to it, so that you can get automatically updated, when a Service Release containing the fix is available for download. You can get the new version from our website’s “My IG”, “My Keys & Downloads” tags: https://ko.infragistics.com/Membership/Default.aspx?panel=Downloads#Downloads
You can also monitor the support ticket’s progress through the “My Support Activity” tag: https://ko.infragistics.com/Membership/MySupport.aspx