1

I need to set a fixed width and height to all charts in the generated excel document but when column width of the sheet get different, the chart width also varies according to column width. How can I resolve this? I used the following method to set a fixed size but it doesn't work. Find the example image attached.

int width = 150;
int height = 350;

ChartUtilities.writeChartAsJPEG(chartOutOne, quality, pie1, width, height);
ChartUtilities.writeChartAsJPEG(chartOutTwo, quality, pie2, width, height);

0 Answers0