Hello Team,
So far in all the examples that I have seen of XamChart, I dont see any labels at the end of the X and Y axis which could tell the users what the values on these Axes represent. I created a project in Visual Studio and I am able to set the values on the X and Y axis, able to plot a scatter line chart and also have a label for the series. But I am unable to figure out how to set a label on the X and Y axis at the end of axis. Could you please help
Thanks,
Manan
Could somebody please help on this.
Hello Manan,
Thank you for your post.
Since the XamChart control is retired in version 11.2 (you can read more detailed information regarding the control retirements at the following blog post: http://es.infragistics.com/community/blogs/jason_beres/archive/2011/01/01/important-product-changes-and-control-retirements-in-2011-2.aspx), I can suggest using our XamDataChart control. You can read more about the XamDataChart control here - http://help.infragistics.com/NetAdvantage/WPF/?page=xamDataChart_xamDataChart.html
To add a label at the end of the axis in XamDataChart, you can use the Title and TitleSettings properties.
You can set what the axis represents by using the Title property of the axis. To move the title to the end of the axis you alter the title settings and set the HorizontalAlignment to Right for the X axis or VetricalAlignment to Top for the Y axis.
This is a sample code snippet that sets the Title and TitleSettings properties:
<ig:NumericXAxis Title="X axis title">
<ig:NumericXAxis.TitleSettings>
<ig:TitleSettings HorizontalAlignment="Right" />
</ig:NumericXAxis.TitleSettings>
</ig:NumericXAxis>
If you need any further assistance please do not hesitate to ask.
Sincerely,
Lazar Nikolov
Infragistics
www.infragistics.com/support
I apologize for the misunderstanding, but the functionality you want is not achievable at the moment. The Properties Lazar suggested you will be available in version 13.2 which is scheduled for 20th of November according to our calendar here:
http://es.infragistics.com/help/service-releases/
Hello Lazar,
Thank you for your reply. We recently bought the NetAdvantage 2013.1 suite and so now I am using the XamDataChart control.
But I do not see the Title and the TitleSettings properties for CategoryXAxis and NumericYAxis. I checked the namespace on the website as well.
Could you please help.
Hello.
I'm just checking if you need any further assistance on the matter.