When I add date-time series data to a chart, the axes are labelled as date/times exactly as they should be.
But if I happen to rebuild the chart at run-time with no series, the chart axis doesn't know that it's supposed to be a date-time axis, and reverts to labelling itself with plain numerics. This destroys the neat formatting of my array of charts.
How can I tell the axis to draw itself as a date-time axis even when it plots no series?
DateTime axis labels
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi toreba,
You can use:
You can use:
Code: Select all
Series1.XValues.DateTime := True;
Chart1.Axes.Bottom.DateTimeFormat := 'mm/dd hh:mm';
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |