Thanks for the hint. Actually my problem was a bug. My chart is a stacked area chart with the data areas occupying almost all of the plot area. The legend was not visible, and I though it was being hidden by the data. But my program provides a user switch to hide/disply the legend, and the wrong switch was being used because of an ambuguity in using nested "With MYCLASSA do begin With MYCLASSB do begin". So I shall avoid such nested with's.