Hi,
Recently your support team member suggested me to upgrade my Infragistics version from 11.2 to latest 15.2.While doing the same I am facing some problems, one of which I have mentioned below. Please reply ASAP with the simplest and efficient solution.
Earlier in XamChart, we had datapoints and we could define different color for datapoints and as a result when we need to show different data on same chart, we used a bar series and set colors on datapoints accordingly. But as I see in the v15.2 dll, there is xamdatachart and column series to show such bar/histogram graph, right? I could not see the datapoint approach anymore now. So my questions are:1.) How can I bind colors with values?
2.) If I use multiple series for different categories, I can set different color, but then all the series gets attached and does not come up to their own and expected X-Axis label.
I am attaching a sample project to make you better understand the problem. Please modify the same and revert back. If you can, please send me the solution with both single series and multiple series sample.
Thanks in advance!
Hi Rob,
You don't need to use multiple column series in order to color each column separately. The ColumnSeries class has an event called AssigningCategoryStyle. This event fires for each category (each column basically) that exists in the series. The event arguments allow you to choose what color to use for that column and it also provides you with the item associated with that column so you can use it to determine what color to show. I modified your sample to show how this works.
Let me know if you have any questions on it.
I have few issues. Please find attached the updated sample for your reference.
1.) How can I set the width of the rectangle through code? I want to give it configurable to user.
2.) The ToolTip I want to show on the rectangle is showing wrong color. How? Can we set it as per the rectangle?
3.) This is a tricky one. In my original application, sometimes the grid line at '0' (of y-axis) is not showing. And since the positive and negative columns cross at '0', this grid line should always be visible. Furthermore, we want this line color to be black & bold.
4.) Why is the Y-Axis line not visible in the attached sample?
Please explain these things briefly for better understanding of the internal architecture & interactions of the controls.
Thanks & Regards
Waiting for your response on this!
Please find the answers to your questions in this forum post.
Hope that helps! Thank you!
Best Regards,
Nelly Tacheva
Infragistics, Inc.