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
Hello Mudassir,
I am just checking if you got this worked out or you still require any assistance or clarification on the matter.
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.
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.
ok thanks for your reply. i will try to find solution based on guidelines provided by you.