I am creating Excel file using apache XSSFWorkbook. I need to draw the chart so I am using another excel as a templete file. Chart is getting created using template but chart is showing empty space for the rows that I have data in template file but not in my output file. How to modify chart data rage so my chart will show data only for the rows that I have populated in output excel file.