Legend property. Gets a collection of all the LegendEntry objects in the specified chart legend. Setting the legend entries of the surface chart is not supported. So it will return null if the chart type is surface chart type...first worksheet Worksheet worksheet = workbook . Worksheets [ 0...Add sample data for chart worksheet . Cells [ "A1" ]. PutValue...