I have Access Vialation when I've tried set DataLablel property:
Code: Select all
with XLS.Sheets[0].AddChart do begin
Col1 := 5;
Col2 := 11;
Series[0].Values := '''1''!$A$2:$A$10';
Series[0].Category := '''1''!$B$2:$B$10';
PlotArea.ChartType := xctLine;
PlotArea.HasLegend := true;
PlotArea.Is3D := true;
Series[0].HasDefDataPoint := true;
Series[0].DefDataPoint.DataLablel := [cdlValue];
end;