Is there an example of applying a data bar conditional format to a column of integers?
Thank you.
Workbook workbook = new Workbook();
Worksheet sheet = workbook.Worksheets[0];
sheet.Range["A1"].NumberValue = 1;
sheet.Range["A2"].NumberValue = -2;
sheet.Range["A3"].NumberValue = 3;
sheet.Range["A4"].NumberValue = -4;
sheet.Range["A5"].NumberValue = 5;
ConditionalFormatWrapper format = sheet.Range["A1:A5"].ConditionalFormats.AddCondition();
format.FormatType = ConditionalFormatType.DataBar;
workbook.SaveToFile("sample.xlsx",ExcelVersion.Version2010);