How the Scatter Series can be used with a DateTime property for its XMemberPath
I have been investigating, how the Scatter Series can be used with a DateTime property as XMemberPath and it seems that when a property of DateTime type is set as a XMemberPath the XamDataChart is using its Ticks property in order to position the data points to the X axis. This allows you to display DateTime labels to the X axis and using a DateTime property for the XMemberPath. In order to convert the Ticks into DateTime, you can create a DataTemplate for the Label property of the NumericXAxis and add a TextBlock in it. After doing so, you can bind the Text property of the TextBlock to a Converter and in its Convert method , you can convert the value to a long type and create a new DateTime object and return it, so the Labels in the X axis will display DateTime values.. I have created a sample application which demonstrates this approach.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support