Reputation: 27276
I've been trying for about an hour now fiddling with the TChart
's Left Axis to make it show the hour of the day.
For example...
In the back-end, I have a 24-hour day range (0 - 24) for the Minimum / Maximum. I've tried setting the Left Axis Label Value Format to h:nn AM/PM
, but to no avail. It just displays that exact formatting text instead of any realistic data.
How do I make the TChart
's left axis display an hourly range of the time of day?
Upvotes: 0
Views: 1002
Reputation: 7452
You may need to set series YValues to datetime, for example:
Chart1[0].YValues.DateTime := True;
You can also set this at design time here :
Upvotes: 4
Reputation: 1115
Try this for axis;
RoundFirstLabel := False;
ExactDateTime := False;
DateTimeFormat := 'hh:nn AM/PM';
Increment := 1/24;
Upvotes: 1