Hello,
i need rounded date time values on x-axis labels like if lable is showing on '2012-09-09 10:34' then the first label should be rounded of to some nearest even value like '2012-09-09 10:30'.
see the attached screenshot for what actually needed.
Any solution ?
Regards
ok thanks for your reply. i will try to find solution based on guidelines provided by you.
Hello Mudassir,
The sample I sent you is just a guideline for achieving the functionality you want. You can feel free to modify it in order to cover your requirements for rounding the values. Also I can say that you can use a multibinding and a MultiConverter in order to get the X and Y values in the Converter.
This is not the correct solution. we cannot blindly round off the label values on x-axis because this is relative to y-axis value
with the current solution if x value is 2012-03-03 10:33 and at this point y value is 50
after rounding off at 2012-03-03 10:30 chart will show incorrect value of 50 at this point.
I am just checking if you got this worked out or you still require any assistance or clarification on the matter.
Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I created a DataTempalte for the XAxis Label and used converter for the Text in order to convert the values. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.