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

 

SetBottomBorderThickness

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

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

 

SetBottomBorderThickness

 

 

Sets the thickness of the bottom border.

 

 

 

Prototype :

 

void SetBottomBorderThickness

(

        string BottomBorderThickness

)

 

 

 

Arguments :

 

BottomBorderThickness

set the value in the form of "thickness gap thickness gap thickness ..." for multiple border lines.

 

 

 

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

        //one border line

        ChartPieceLabel.SetBottomBorderThickness("5");
        //nultiple border lines

        //ChartPieceLabel.SetBottomBorderThickness("5 6 7 6 9");

     }

  }

}

 

 

 

Available Events :

 

OnBind, OnPostChartBuild

For the object returned by GetChartLabel function of a chart, the function can be called only in OnBind event, and for the object returned by GetLabel function of a ChartPiece, the function can be called only in OnPostChartBuild event.