Bar Chart w/ Line Graph Average - Can this be done?
Please provide a link or .zip code example.
Thanks
Example: Items per month with a line graph overlay of an average against another property per data item.
Hello Jesse,
Thank you for your post. I have been looking into it and I can suggest using the trend line of the BarSeries. You can read more detailed information regarding the trend lines in the XamDataChart, here in our documentation: http://help.infragistics.com/NetAdvantage/WPF/current/CLR4.0/?page=xamDataChart_Trend_lines.html. Also I have created a sample application for you, that shows how you can implement this functionality.
Please let me know if you need any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
Very good. Is there a way in your example to chart on Value1, but show a trend line average on Value2? Or any other conceptually equivalent solution. Thanks.
Thank you for your reply. I have been looking into your question and if I understand correctly, you wish to show BarSeries for Value1 property and also you wish to show trend line for Value2, without actually showing the BarSeries for it. If this is correct, I can suggest adding one more CategoryYAxis, and hide its labels and also adding a BarSeries for Value2 and set its trend line and hide the bars. I have modified the sample application that I have attached with my previous reply, in order to show how you can implement this approach.
Very good. Regarding layout - How can the axis labels be modified to not overlap the edge (see attached shot)? Thanks.
Thank you for your reply. I have been looking into it and I can suggest hiding the labels of both ends of the axis, since the labels are centrally aligned to the vertical grid lines. In order to do that, you can set the Label of the axis to a DataTempalte and change the visibility of the label, based on its data. I have created a sample application for you, that shows how you can implement this approach.
I am just checking if you require any further assistance on the matter.