Hi,
Is it possible to create a chart as in attached picture with WPF xamDataChart? I tried wtith OlapXAxis, but it is not support multiple Y-Axes.
Serie "Volume" should be LineSeries, others should be ColumnSeries. Volume serie should have second YAxis. I have hierarchy in XAxis.
Thank you in advance.
Hello isimeon,
Thank you for your post.
I have been investigating into this issue, and currently, the OlapXAxis in the XamDataChart only accepts a single YAxis for usage in plotting the points in the chart, as defined by the YAxis property of that axis.
I had thought that something that you may be able to do is use a separate OlapXAxis bound to the same data source as your primary one. Then, you could apply an AxisLabelSettings object to the OlapXAxis.LabelSettings property, which has its AxisLabelSettings.Visibility property set to "Collapsed." This would effectively hide the secondary OlapXAxis to the user. However, in practice I have recently seen that while the axis shows up and works correctly without the AxisLabelSettings, the series that is assigned to it doesn't seem to function correctly in the way that it isn't drawn. I am currently looking into this further with our upper level development staff, and I will have more information for you on this matter soon.
Regarding the actual usage of multiple Y axes with a single OlapXAxis, this 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.
Submitting your idea will allow you to communicate directly with our product management team, track the progress of your idea 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.
Remember when submitting your idea to explain the context in which a feature would be used and why it is needed as well as anything that would prevent you from accomplishing this today. 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. You can also link back to this thread for additional details.
Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewAssociate DeveloperInfragistics Inc.www.infragistics.com/support
Hi Andrew,
Thank you for your reply.
Just before I received your reply I tried the same approach. I defined 2 YAxis and 2 OlapXAxis. The second OlapXAxis is collapsed. The result is in the attached picture. There is only one problem that I cannot resolve. There are vertical lines and I cannot remove them. As you see on the picture, there are two sets of the vertical lines, and distance between them litle by litle increases. I tried wit Stroke, MajorStroke setting with no success. Also the volume points litle by litle going to right.
I will prepare a sample project and I will send you.
Also I will create a product idea on site.
Best Regards,
Ivan
Hello Ivan,
I am glad you were able to get your chart working with the usage of multiple Olap axes.
Regarding the vertical grid lines in your XamDataChart, you can get rid of these by setting the MajorStrokeThickness, MinorStrokeThickness, and StrokeThickness properties on your Olap axes to 0. If, by chance, you are looking to eliminate all of the grid lines in your chart, both horizontal and vertical, you can set the XamDataChart.GridMode property instead. Setting this GridMode property to "None" will remove all grid lines from the chart's plot area.