Jump to content
Software FX Community

Max and Min Dates on X axis


LDavies

Recommended Posts

If I have numeric values on the x-axis, then I can specify a Min and Max value for the left and right limits of my graph.

However, if the x-axis is a time line and my plotted points have a datetime datatype in the X value, then how can I specify a Min and Max datetime so that the graph "clips" the data on each side?

 

Thanks in advance for any response!

 

Link to comment
Share on other sites

Internally we translate between dates and doubles using DateTime.ToOADate/DateTime.FromOADate.

If you have a datetime variable you want to use for min (or max) you would say

chart1.AxisX.Min = dateTimeMin.ToOADate();

Regards,

JuanC

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...