Hi, I have a basic column series with a numeric y Axis. I have it set on a 20 interval and I am displaying the specific values on top of the columns. However, since the y-axis values are automatically generated, sometimes the chart is not high enough to show the number of my tallest column. Please see attached example. the top column value is cut off. How do i force the y axis to be bigger than what was generated?
thanks,
-Steven
Hello Steven,
Thank you for your post. I have been looking into your question and I can suggest using the MinimumValue and MaximumValue properties of the NumericYAxis. You can add two double properties to you view model that will return the minimum and maximum of the range of your data and you can bind the MinimumValue and MaximumValue properties of the NumericYAxis to those properties. I have created a sample application for you, that shows how you can implement this approach.
Please let me know if you need any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
Thanks Krasimir, that solves my problem.
now I have another one.
I currently have a datagrid that is showing all the data for the whole year on the list. How do I make it so that when the user clicks on each column that it shows only that month's data? I couldn't find any examples online.
thanks again,
Thank you for your reply. I have been looking into the question that you are having and if I understand correctly you have a XamDataGrid that is displaying the data of the XamDataChart and when you click on an column (rectangle) of the XamDataChart, you wish to filter the XamDataGrid, to show the data for the column. If this is correct, I can suggest using the MouseLeftButtonDown event of the XamDataChart and using the e.OriginalSource and the mouse coordinates to filter the XamDataGrid. I have modified the sample application that I have previously attached, in order to show how you can implement this approach.
I am just checking if you require any further assistance on the matter.