IUiChartCategoryNameEventArgs.Result

Syntax

Result: Variant;

Description

The Result property determines a point name.

Example

This example assumes that there is the UiChart1 object of the UiChart type.

Sub UiChart1OnGetCategoryName(Sender: Object; Args: IUiChartCategoryNameEventArgs);
Begin
    Args.Result := DateTime.AddDays(CurDay, Args.PointIndex);
End Sub UiChart1OnGetCategoryName;
Sub UiChart1OnGetCategoryFormat(Sender: Object; Args: IUiChartCategoryFormatEventArgs);
Begin
    Args.Result := "dddd dd MMMM yyyy";
End Sub UiChart1OnGetCategoryFormat;

After executing the example names of points of the category axis are created using the name of the weekday and the date:

See also:

IUiChartCategoryNameEventArgs