My English is not good
I am having a binding issue with the axis label templates in my xamdatachart.
hope Creating the File
upload to pictures
Thanks for help
Hello Guo Yafei,
I am just checking if there is anything else I can do for you.
Thank you for your post.
I have been looking into your requirement and as I mentioned in my previous post if you wish to have a label on the xAxis corresponds correctly to each of the points in the series you should use CategoryXAxis or CategoryDateTimeXAxis. If you want to use the NumericXAxis, the best approach that I can suggest is the
the one that I have send in my previous post.
Please let me know if you need any further assistance on this matter.
thanks your suggestion, i will think about it. I have considered your sample
please tell me,
how to achieve to display another Field information in the NumericXAxis DateTemplate. For example, interval Field and Unit Field.
I have been looking into the sample application that you have attached and into your requirements. I researched it and it seems that if you wish to have a label on the x Axis corresponding to each of the points in the series you you should have CategoryXAxis or CategoryDateTimeXAxis.
What I can suggest, if you want to keep the NumericXAxis and implement similar appearance is to create a DataTemplate with TextBlock for NumericXAxis and a converter for the Text in the TextBlock. In the converter you can get the range of NumericXAxis and depending on it you can set the interval and return a value of the Item with “day”, “month”, or “year” depending on the interval. I modified your sample application to show you how you can implement this approach.
My sample
Thank you