• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support

Add a 3D Pie Chart

Output: AddPie3DChart.xlsx

var workbook = new Workbook();
var worksheet = workbook.Worksheets[0];
            
worksheet.GetRange("I2:I5").SetValue(new[] { "Point 1", "Point 2", "Point 3", "Point 4" });
worksheet.GetRange("J2:J5").SetValue(new[] { 1, 2, 3, 4 });

var chart1 = worksheet.Charts.Add<Pie3DChart>("A1");
chart1.Size.HeightInches = 2.5;
chart1.Size.WidthInches = 3.5;
chart1.DataSource = "Sheet1!$I$1:$J$5";

workbook.SaveAs("AddPie3DChart.xlsx");
  • Improve this Doc
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX