Even with v4.8.2, I am still getting zeros displayed when converting charts to images. Also, you’ll notice other inconsistencies, such as the values for the lighter purple bar not showing at all.
Please see the attached images.
I am using the following code…
var workbook = LoadWorkbook(file);
var imageName = Path.GetFileNameWithoutExtension(file) + “.jpg”;
imageName = Path.Combine(Path.GetDirectoryName(file), imageName);
var options = new ImageOrPrintOptions {
ImageFormat = ImageFormat.Jpeg,
Quality = 90
};
workbook.Worksheets[0].Charts[0].ToImage(imageName, options);