I am creating chart and writing them to pdf file. However when I create chart the distance between chart and Y axis not always appears the same (in most cases that distance is quite big). 1 time out of 10 times the distance works fine as you see from the pics


However if I display the chart using new SwingWrapper(chart).displayChart() and if the distance between Yaxis and chart is large and I resize the window it automatically adjust the distance between chart and Y axis. Any idea why it happens so? Thank you in advance
I am creating chart and writing them to pdf file. However when I create chart the distance between chart and Y axis not always appears the same (in most cases that distance is quite big). 1 time out of 10 times the distance works fine as you see from the pics


However if I display the chart using new SwingWrapper(chart).displayChart() and if the distance between Yaxis and chart is large and I resize the window it automatically adjust the distance between chart and Y axis. Any idea why it happens so? Thank you in advance