UiChart.OnGetPointNameRoot

Syntax

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

Begin

//set of operators

End Sub OnGetPointNameRoot;

Parameters

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

The Args parameter allows to define event parameters.

Description

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

Example

This example assumes that there is the UiChart1 object of the UiChart type. Description of the CChartPointNameNode class is given 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 this example determines the root element for hierarchy of names of the category axis.

See also:

UiChart