User (Legacy) Posted January 10, 2007 Report Share Posted January 10, 2007 Hi, I have a chart where Y are integer and X are DateTime. I need to show the DateTime object from 1 to 24 instead of 0 to 23. Is it way or a regular expresion can I use to do that. This is my code: base.AxisX.LabelsFormat.Format = AxisFormat.DateTime; base.AxisX.LabelsFormat.CustomFormat = "yyyy/MM/dd HH:00"; Simon Thanks Link to comment Share on other sites More sharing options...
Software FX Posted January 13, 2007 Report Share Posted January 13, 2007 The Date-Time Formatting is done by the .NET Framework. I am not aware of any date-time formatting that will do hours from 1 to 24. You may want to check whether there is an attribute in CultureInfo that controls that, if there is, you can set the culture of the Axis or the Chart to this culture and it will obey this rules. -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.