Hi, I’m having a hard time trying not to show legend keys in my excel charts. I’ve tried
Hi,
Please use Chart.setLegendShown() method. Please see the code below and the source and output xlsx files.
Java
String path = “F:\Shak-Data-RW\Downloads\MyDemo.xlsx”;
Workbook workbook = new Workbook(path);
Chart chart = workbook.getWorksheets().get(0).getCharts().get(0);
chart.setLegendShown(true);
workbook.save(path + “.out.xlsx”);