Forum > TAChart
Time base axis
LemonParty:
Is it possible to make the bottom axis like on screenshot? The axis marks should be time marks.
wp:
You mean you want to draw the red markers as axis marks? Oder do you mean to have a time scale?
LemonParty:
Time scale.
wp:
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:
This is what I wanted. Thank you very much.
Navigation
[0] Message Index
[#] Next page