When rendering some Excel charts to images, I noticed there are extra units on some of the charts.
var fileName = “axis unit”; // axis unit 2 for 2nd test file
var workbook = new Workbook(fileName + “.xlsx”);
var options = new ImageOrPrintOptions
ImageType = ImageType.Emf,
OnlyArea = false,
TextRenderingHint = TextRenderingHint.ClearTypeGridFit,
OnePagePerSheet = true,
Transparent = true
workbook.Worksheets["sheet1"].Charts.ToImage(fileName + ".emf", options);
Extra units were rendered in the charts. I’ve attached two test files and outputs, as well as screenshots for your reference. Could you please help me check this?