<< Click to Display Table of Contents >> Navigation: »No topics above this level« TOC : Script API > JavaScript > JavaScript API > ChartObject > ChartPiePiece3D > Method >SetLinkToc |
Sets TOC label.
Prototype :
void SetLinkToc
(
string TocPath
)
Arguments :
TocPath |
path of the TOC label Using "/" as the separator set in the form of "report_template_name/level1/level2/.../leveln" |
Reference :
Give each TOC label the level corresponding to its position in the report tree.
Example :
//the report template name in the report tree is 'FORCS'.
//set toc link to 'Seoul' under 'Region'.
var ChartRootUnit = This.GetChartRootUnit();
var ChartShapeCnt = ChartRootUnit.GetShapeCount();
for(i = 0; i < ChartShapeCnt; i++) {
var ChartShape = ChartRootUnit.GetShape(i);
var ChartPieceCnt = ChartShape.GetPieceCount();
for(j = 0; j < ChartPieceCnt; j++) {
var ChartPiece = ChartShape.GetPiece(j);
ChartPiece.SetLinkToc("FORCS/Region/Seoul");
}
}
Available Events :
OnPostChartBuild