Whenever I try to call ...DataLabelsCo llection.Add I get the error
"Invallid Parameter".
if((document.ch sp.charts(0).Ty pe==18) ||
(document.chsp. charts(0).Type= =19) ||
(document.chsp. charts(0).Type= =20) ||
(document.chsp. charts(0).Type= =9001) ||
(document.chsp. charts(0).Type= =9002))
{
var dls;
dls =
document.chsp.c harts(0).Series Collection(1).D ataLabelsCollec tion.Add();
dls.HasPercenta ge = 'True';
dls.HasValue = 'True';
}
"Invallid Parameter".
if((document.ch sp.charts(0).Ty pe==18) ||
(document.chsp. charts(0).Type= =19) ||
(document.chsp. charts(0).Type= =20) ||
(document.chsp. charts(0).Type= =9001) ||
(document.chsp. charts(0).Type= =9002))
{
var dls;
dls =
document.chsp.c harts(0).Series Collection(1).D ataLabelsCollec tion.Add();
dls.HasPercenta ge = 'True';
dls.HasValue = 'True';
}
Comment