如何将jfreechart曲线图纵坐标值限定在一定范围内

  
/**

**QQ:252574345

**MSN:[email protected]

*/   

 

 

 

 

 

 

      numberaxis.setAutoTickUnitSelection(false);

      //设置纵坐标值的间距为10
      numberaxis.setTickUnit(new NumberTickUnit(10));

      //纵坐标值只能是0-100之间的值
      numberaxis.setRangeWithMargins(0, 100);

 

实际显示效果:

纵坐标为0-100,间隔为10的固定刻度值

显示为:

0  10  20  30  40  50  60  70  80  90  100

 

 

 

你可能感兴趣的:(qq,jfreechart)