plot.setRangeAxisLocation(AxisLocation.BOTTOM_OR_RIGHT);

解决方案 »

  1.   

    plot.setDomainAxisLocation(AxisLocation.TOP_OR_RIGHT);
      

  2.   

    renderer.setItemLabelGenerator(new StandardCategoryItemLabelGenerator());
    renderer.setItemLabelFont(new Font("黑体",Font.PLAIN,12));
    renderer.setItemLabelsVisible(true);
      

  3.   

    barRender.setPositiveItemLabelPosition(new ItemLabelPosition());//显示位置/**new ItemLabelPosition()默认位置是OUTSIDE_12,还可以根据ItemLabelPosition
    的其他构造方法自定义位置,ItemLabelPosition有三种构造方法,见ItemLabelPosition**/
    /*
    用ItemLabelPosition 的构造函数来表示,其中的参数ItemLabelAnchor
    是描述Label位置的类,分为CENTER,INSIDE1-12,OUTSIDE1-12 ,一共有
    25个位置供你选择!*/