TAChart: Force TDateTimeIntervalChartSource to place labels at the first day of a week in dtsWeek mode, and at Jan 1 in dtsMonth mode (if visible).

This commit is contained in:
wp_xyz 2022-01-14 12:16:22 +01:00
parent 42e38ce991
commit 6e2097ec76

View File

@ -254,7 +254,8 @@ begin
Result := EncodeDate(y, m, 1);
end;
end;
dtsMonth: Result := StartOfTheMonth(AValue);
dtsMonth: Result := StartOfTheYear(AValue);
dtsWeek: Result := StartOfTheWeek(AValue);
else ;
end;
end;