<< Click to Display Table of Contents >> Navigation: »No topics above this level« TOC : Script API > JavaScript > JavaScript API > ChartObject > ChartPiePiece3D > Method >GetColor |
Gets the color of the ChartPiece object.
Prototype :
string GetColor
(
No Arguments
)
Reference :
Return an RGB value given by "Red, Green, Blue" format. For example, "255, 255, 0" for yellow.
Example :
var ChartRootUnit = This.GetChartRootUnit();
var ChartShapeCnt = ChartRootUnit.GetShapeCount();
for(i = 0; i < ChartShapeCnt; i++) {
var ChartShape = ChartRootUnit.GetShape(i);
_TraceLn(ChartShape.GetSeriesName());
var ChartPieceCnt = ChartShape.GetPieceCount();
for(j = 0; j < ChartPieceCnt; j++) {
var ChartPiece = ChartShape.GetPiece(j);
_TraceLn(ChartPiece.GetColor());
}
}
Available Events :
OnPostChartBuild