Time base axis lazarus / 55-TAChart ---------------------------------------------------------------------- LemonParty · 2024-07-09 09:52 Is it possible to make the bottom axis like on screenshot? The axis marks should be time marks. ---------------------------------------------------------------------- wp · 2024-07-09 10:16 You mean you want to draw the red markers as axis marks? Oder do you mean to have a time scale? ---------------------------------------------------------------------- LemonParty · 2024-07-09 10:27 Time scale. ---------------------------------------------------------------------- wp · 2024-07-09 17:03 Use TDate/TDateTime/TTime values for x. Add a TDateTimeChartSource to the form and assign it to the Marks.Source of the chart's BottomAxis. Then also set Marks.Style to smsLabel. Now you have a date/time axis. The units adjust automatically to the range plotted on x. If labels are overlapping, increase the DateTimeChartSource.Params.MaxLength. See attached mini project. ---------------------------------------------------------------------- LemonParty · 2024-07-09 17:53 This is what I wanted. Thank you very much. ---------------------------------------------------------------------- LemonParty · 2024-07-25 06:43 One more question. On the screenshot time is in format DD/MM. Is it possible to make it MM/DD? ---------------------------------------------------------------------- wp · 2024-07-25 08:50 The simple way is to change the "DateTimeFormat" property of the DateTimeIntervalChartSource: change it to mm/dd for your month-first format. However, this has the disadvantage that, when you zoom into the chart, always the same format will be used, even if the zoomed range is only a few hours. Better to look at the "DateTimeStepFormat" entries where every date/time unit has its own format. According to your screenshot you probably are in the "DayFormat" or "WeekFormat" region - change them to mm/dd. You may also want to change the "MonthFormat" to yyyy/mm to begin the labels with the year. ---------------------------------------------------------------------- LemonParty · 2024-07-26 12:39 Thank you. Editing DateTimeStepFormat do the thing.