DateTime as axisHello, <div><br/></div> <div>Ok, I have a dataset containing two columns, &quot;Time&quot; and &quot;Temperature&quot;. The &quot;Time&quot; field is held in my database as a DateTime object.</div> <div><br/></div> <div>I want to add each item in the dataset as a point on a graph, but at the moment when I do that, only the Date information is retained in the graph, not the time.</div> <div><br/></div> <div>The datetimes differ by roughly 30 minutes, but sometimes it is 20, sometimes 40, so I also need the axis to take this into account and plot my points in the correct places.</div> <div><br/></div> <div>Any help with either of my two questions appreciated.</div> <div><br/></div> <div><br/></div>© 2009 Microsoft Corporation. All rights reserved.Tue, 14 Jul 2009 05:18:04 Z393794fe-9f02-43f8-8c23-f4f14c92b3dbhttp://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/393794fe-9f02-43f8-8c23-f4f14c92b3db#393794fe-9f02-43f8-8c23-f4f14c92b3dbhttp://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/393794fe-9f02-43f8-8c23-f4f14c92b3db#393794fe-9f02-43f8-8c23-f4f14c92b3dbkingy0489http://social.msdn.microsoft.com/Profile/en-US/?user=kingy0489DateTime as axisHello, <div><br/></div> <div>Ok, I have a dataset containing two columns, &quot;Time&quot; and &quot;Temperature&quot;. The &quot;Time&quot; field is held in my database as a DateTime object.</div> <div><br/></div> <div>I want to add each item in the dataset as a point on a graph, but at the moment when I do that, only the Date information is retained in the graph, not the time.</div> <div><br/></div> <div>The datetimes differ by roughly 30 minutes, but sometimes it is 20, sometimes 40, so I also need the axis to take this into account and plot my points in the correct places.</div> <div><br/></div> <div>Any help with either of my two questions appreciated.</div> <div><br/></div> <div><br/></div>Fri, 03 Jul 2009 21:14:31 Z2009-07-03T21:14:31Zhttp://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/393794fe-9f02-43f8-8c23-f4f14c92b3db#99ee7c35-4ec8-447b-b321-92d648d96c70http://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/393794fe-9f02-43f8-8c23-f4f14c92b3db#99ee7c35-4ec8-447b-b321-92d648d96c70Alex Gorevhttp://social.msdn.microsoft.com/Profile/en-US/?user=Alex%20GorevDateTime as axisMake sure the axis labels format string displays minutes in addition to the hours. <br/><br/>Chart.ChartAreas[0].AxisX.LabelStyle.Format = &quot;g&quot;;<br/><br/>Alex.<hr class="sig"><a href="http://blogs.msdn.com/alexgor">http://blogs.msdn.com/alexgor</a>Mon, 06 Jul 2009 16:28:49 Z2009-07-06T16:28:49Z