最终定位在 Series.getRangeWithMargin Aixs.getDataCoordinate()函数中。
问题是由于在shell ,open前,所有shell中的composite的高和宽值都为零。
暂时将 org.swtchart.internal.ChartLayout的layoutplot方法中的 width和height设置为默认值在该值小于等于0的情况下:
增加如下代码:
if(width<=0){
width=350;
}
if(height<=0){
height=350;
}
这个只是治标,没有治本!需要进一步深入研究!