折线图x轴从原点开始

都可以:

1.

CategoryAxis categoryaxis = categoryplot.getDomainAxis();
categoryaxis.setLowerMargin(0);

2.

ValueAxis valueAxis = plot.getDomainAxis();

 valueAxis.setLowerMargin(0);



你可能感兴趣的:(java)