<< Click to Display Table of Contents >> Navigation: »No topics above this level« TOC : Script API > JavaScript > JavaScript API > ChartObject > ChartPiePiece3D > Method >SetLinkURL |
Call and display the web browser URL of the target frame.
Prototype :
void SetLinkURL
(
string URL,
string Target
)
Arguments :
URL |
URL. set with protocol |
Target |
web browser call option one of _self, _parent, _top, _blank, or window name |
Reference :
Android and iOS viewers only support "_blank".
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);
ChartPiece.SetLinkURL("http://www.forcs.com", "_self");
}
}
Available Events :
OnPostChartBuild