IUiChartPointNameRootEventArgs.Result

Syntax

Result: IChartPointNameNode;

Description

The Result property determines a root element for hierarchy of category axis names.

Example

This example assumes that there is the UiChart1 object of the UiChart type. CChartPointNameNode class description 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;

After executing the example the root element for hierarchy of category axis names is determined.

See also:

IUiChartPointNameRootEventArgs