Dear All,
I am binding DateTime values to Chart Control. Everything is working fine. But I want set Minimum And Maximum of AxisX to DateTime value. like
Chart1.ChartAreas[0].AxisX.Minimum=DateTime.Now;
All though Minimum accepts only double value. How I achieve this one. Any suggestion is most valueble in for this post.
Thanks in advance.
Hi,
You can use the DateTime.ToOADate which returns double value.
For more information, please try to refer to the following thread:
http://stackoverflow.com/questions/9790831/having-issues-with-plotting-polar-data-on-a-datetime-x-axis.
#DateTime.ToOADate:
http://msdn.microsoft.com/en-us/library/system.datetime.tooadate.aspx.
Hope it can help you.
Best Regards,
Amy Peng
沒有留言:
張貼留言