UiChart.OnGetPointNameRoot

Syntax

Sub OnGetPointNameRoot(Sender: Object; Args: IUiChartPointNameRootEventArgs);

Begin

//set of operators

End Sub OnGetPointNameRoot;

Parameters

Sender - parameter that returns the component that has generated the event.

Args - parameter that enables the user to determine event parameters.

Description

The OnGetPointNameRoot event enables the user to determine a root element for hierarchy of names of the category axis.

Example

This example assumes that there is the UiChart1 object of the UiChart type. The CChartPointNameNode class is described in the IChartPointNameNode interface.

Sub UiChart1OnGetPointNameRoot(Sender: Object; Args: IUiChartPointNameRootEventArgs);

Var

Root, MonthLevel, DayLevel: CChartPointNameNode;

Begin

Root := New CChartPointNameNode.Create(Null);

Root.Format := "dd MMMM yyyy";

Root.Name := "Years";

Root.Required := True;

MonthLevel := New CChartPointNameNode.Create(Root);

MonthLevel.Format := Root.Format;

MonthLevel.Name := "Months";

MonthLevel.Required := True;

DayLevel := New CChartPointNameNode.Create(MonthLevel);

DayLevel.Format := Root.Format;

DayLevel.Name := "Days";

DayLevel.Required := True;

Args.Result := Root As IChartPointNameNode;

End Sub UiChart1OnGetPointNameRoot;

Executing the example determines a root element for hierarchy of names of the category axis.

See also:

UiChart