IValueList.DateTime
IValueList
property DateTime: WordBool;
Type Library
TeeChartx
Description
TeeChart allows values to be expressed either as numbers or as Date+Time values. Each Series value list has a boolean property called DateTime. . The boolean DateTime property tells TeeChart what type the numbers are.The horizontal (x axis) and vertical (y axis) value defaults are number format (DateTime False). DateTime can be changed both at design-time and run-time, forcing the Chart to repaint. This property is used whenever a value must be converted to text, for example, to draw it as the chart axis labels. Axis labels will be drawn in DateTime or numeric format accordingly to the setting of the DateTime property.
You can also set the Chart Series ValueFormat and the Chart Axis DateTimeFormat formatting strings, to control how the values will be displayed.
DateTime Example
Delphi
{LineSeries}
TChart1.Series[ 0 ].XValues.DateTime := False ; (we have X numbers, not DateTime X values)
Visual Basic
'BubbleSeries
TChart1.Series( 1 ).asBubble.RadiusValues.DateTime = True
At runtime, you can manually set the values accordingly:
Delphi
TChart1.Series[ 1 ].XValues.Value[5]:=EncodeTime(23,59,00);
if LineSeries1.XValues.DateTime equals True.
Or...
TChart1.Series[ 1 ].XValues.Value[5]:=1234.567;
if LineSeries1.XValues.DateTime equals False. However, no type checking is performed, so both ways will work.