TOC : Script API > JavaScript > JavaScript API > ChartObject > ChartCylinderPiece3D > Method >

 

GetLabel

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

TOC : Script API > JavaScript > JavaScript API > ChartObject > ChartCylinderPiece3D > Method >

 

GetLabel

 

 

Gets the data label.

 

 

 

Prototype :

 

object GetLabel

(

        No Arguments

)

 

 

 

Reference :

 

GetLabel function retrieves data label to ChartLabel object, and it works only when "View data label" option of the chart was checked.

 

 

 

Example :

 

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);

     var ChartPieceLabel = ChartPiece.GetLabel();

     if(ChartPieceLabel != null) {

        ChartPieceLabel.SetFontBold(true);

     }

  }

}

 

 

 

Available Events :

 

OnPostChartBuild