Hi @Pieter, thanks for the code sample. Since I'm new to the VCL Chart library, and the documentation is poor, could you pls help me with some questions for the code?
- If I understood the concept we can`t specify the APoint.SingleXValue as a full DateTimeStamp and should use some kind of offset?
Range.StartDate := baseDateTime;
- What if my dates for points include milliseconds?
function ConvertDateTimeToX(Date: TDateTime): Double;
begin
Result := SecondsBetween(Date, baseDateTime);
end;
- XYValuesOffset is undocumented, why do we use it?
- XYValues is undocumented, why do we use it?
- When AutoUnits is set true, the chart calculates the best possible value and position based on the minimum and the maximumvalue, Is this a bad practice to use such a nice feature?
- When two series have an Y-axis displayed on the same size of the chart, the spacing between the Y-axis itself and value is controlled by Serie.YAxis.MajorUnitSpacing := 30, why do we need this in terms for XAxis?
XAxis.MajorUnitSpacing := 20;
XAxis.XYValuesOffset := 100;
XAxis.AutoUnits := false;
XAxis.XYValues := False;
- For some reason I couldn`t integrate the sample into real project with 3 charts (
Y0: arCommon
Y1: arEnabled
Y2: arCommon
and all three should share same Xaxis (datetime)
)
Is there anything specific I'm missing?