Hi,
I'm currently working on the StackedColumnSeries but have run into a snag due to my chosen data:
I have 2 sets of data created from the same class: DataX, DataY
I need to set each of the stacked columns to be set to DataX & DataY, both classes have value members with the same name (DataX.fills, DataY.fills).
I was hoping to be able to access each of these series' individually like you can with separate line series as this would allow me to set the itemsSource to the correct data set.
Is there any work around? - I'm coding in C# using WPF.
Thanks,
Tom
Hi again Gergana,
I'm going down a different route creating new temp classes to hold the data I want, please could you give me an example of the column series using 2 stacks (series fragments) and a dateTime x axis please where the data is put into 5 minute slots?
Hello Tom,
I have been looking into your post and have created a small sample application for you. In the sample application I have a XamDataChart with StackedColumnSeries and CategoryDateTimeXAxis. The series has to StackedFragmentSeries. For how to set an interval for the CategoryDateTimeXAxis, I can suggest to take a look at the following forum thread: http://www.infragistics.com/community/forums/t/83979.aspx.
Please find the sample application attached and feel free to let me know if you have any further questions on this matter.
Hi Gergana,
Thanks for the attachment, it all looks good until you adjust the min & max values of the chart and then it all skews which was the problem that I was having.
My scenario which uses live stock data requires that the max and min of the chart is fixed and pre defined, as values come in throughout the day (bucketed into 5 minutes) they will be added to the stack chart.
The result of adding the following lines of code is attached:
xAxis.MinimumValue = DateTime.Now.AddMinutes(-60);xAxis.MaximumValue = DateTime.Now.AddMinutes(60);
I have logged this behavior with our developers in our tracking system, with an issue ID of 192735. I have also created a support ticket on your behalf with number CAS-154206-F9H8L9 in order to link the development issue to it so that you are automatically updated when a Service Release containing your fix is available for download.
Hello Thomas,
Our developers have finished with the research of this behavior. Currently we use heuristic to determine the width for columns that are closer together in terms of date.
This is way I can suggest using the CategoryXAxis for displaying DateTime values as this axis is designed to divide the space available to the columns regardless of the date they represent. Here is an example on how the CatecoryDateTimeXAxis can be replaced with a CategoryXAxis in the sample application I have provided in one of my last posts:
<ig:CategoryXAxis x:Name="xAxis"
ItemsSource="{StaticResource energyProdData}"
Label="{}{Dates: hh:mm}" >
Please do not hesitate to let me know if you have any further questions on this matter.