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
Hello Tom,
Thank you for your post!
I have been looking into it and it seems that I am missing something from your scenario. Would you please provide me with more detailed information about the functionality you want to achieve?
Do you want to be able to set the ItemsSource for each part of the StackedSeries fragment?
Having this information would help me further investigate this issue for you.
Thank you for the provided information. Looking forward to hearing from you.
Hi Gergana,
You are correct that I want to be able to set the ItemsSource for each of the StackedSeries Fragments (or be able to bind the data individually with some sort of assignment). Ideally I would like to be able to set each one with an individual command :
fragment1 = datax & fragment2 = datay
Cheers,
I have been looking into your post. Currently you can set the ValueMemberPath property of the StackedFragmentSeries. This way you can assign a property of the data, that you bind to the StackedColumnSeries to a separate fragment.
I have created a small sample application for your to show you this functionality.
Please find the sample application attached and feel free to let me know if you have any further questions on this matter.
Hi again,
As I stated in my first post I am unable to do it this way as my I have 2 separate datasets (2 instances of the same class) that need to be set to each of the stacked columns and because they are instances of the same class even if I could somehow get both of them assigned the value member has the same name.
Here is an example of my data, the observable collection 'fills' is what needs to be assigned and there will be 2 Route classes:
public class Route { public int rid { get; set; } public int id { get; set; } public String ticker { get; set; } public String broker { get; set; } public String side { get; set; } public String type { get; set; } public int size { get; set; } public int filled { get; set; } public int working { get; set; } public double limit { get; set; } public string status { get; set; } public int lastfill { get; set; } public int bal { get; set; } public double p_bal { get; set; } public double avg_px { get; set; } public double strike { get; set; } public double value { get; set; } public ObservableCollection<Fill> fills { get; set; } }
public class Fill { public DateTime X { get; set; } public double fills { get; set; } public double fillNum { get; set; } }
After working on the functionality that you are trying to achieve and doing some research, the ability to set ItemsSource for each of the stacked columns has been determined to be a new product idea. You can suggest new Product Ideas for future versions (or vote for existing ones) at http://ideas.infragistics.com.
Steps to create your idea:
1. Log into the Infragistics Product Ideas site at http://ideas.infragistics.com (creating a new login if needed).
2. Navigate to the product / platform channel of your choice (e.g. WPF, Windows Forms, ASP.NET, HTML5 / Ignite UI, iOS / NucliOS, etc.)
3. Add your product idea and be sure to be specific and provide as much detail as possible.
• Explain the context in which a feature would be used, why it is needed, why it can’t be accomplished today, and who would benefit from it. You can even add screenshots to build a stronger case. Remember that for your suggestion to be successful, you need other members of the community to vote for it. Be convincing!
• [CASE: “Reference case [case number], FORUMS: “Include a link to this thread”] in your idea so product management will be able to look back at this case.
The benefits of submitting the product idea yourself include:
- Direct communication with our product management team regarding your product idea.
- Notifications whenever new information regarding your idea becomes available.
Additional benefits of the Product Idea system include:
- Ability to vote on your favorite product ideas to let us know which ones are the most important to you. You will have ten votes for this and can change which ideas you are voting for at any time.
- Allow you to shape the future of our products by requesting new controls and products altogether.
- You and other developers can discuss existing product ideas with members of our Product Management team.
The product ideas site allows you to track the progress of your ideas at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.
Thank you for contacting Infragistics.
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?
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.
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.
I am just checking if you have any further questions on this matter. Please do not hesitate to let me know if you do.