<< Click to Display Table of Contents >> Navigation: »No topics above this level« TOC : Script API > JavaScript > JavaScript API > ChartObject > ChartLabel > Method >GetNodeName |
Get the value of the chart label.
Prototype :
string GetNodeName
(
No Arguments
)
Reference :
GetNodeName() function can be used only for the data label got by GetLabel function of ChartPiece.
If call GetNodeName function when ChartLabelType is XAxisLabel, X axis value will be returned if XAxisLabel is item, and a blank will be returned if XAxisLabel is number or date type. If X-axis have a tree structure, a string will be returned with separator comma(",').
If call GetNodeName function when ChartLabelType is ZAxisLabel or LegendLabel, Z axis value or legend value will be returned. If Z-axis or legend have a tree structure, a string will be returned with separator comma(",').
In other case, a blank will be returned if call GetNodeName function.
Example :
var ChartRootUnit = This.GetChartRootUnit();
var XAxisLabelCount = ChartRootUnit.GetXAxisLabelCount();
for(i = 0; i < XAxisLabelCount; i++) {
var XAxisLabel = ChartRootUnit.GetXAxisLabel(i);
_TraceLn(XAxisLabel.GetNodeName());
}
Available Events :
OnPostChartBuild