JFreeChart and Y-axis Units

后端 未结 3 1665
梦如初夏
梦如初夏 2021-01-14 11:00

I have a StackedXYAreaChart that looks like the following:

\"enter

How do I fo

3条回答
  •  时光取名叫无心
    2021-01-14 11:38

    CategoryPlot plot = chart.getCategoryPlot();
    
    NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
    
    rangeAxis.setTickUnit(new NumberTickUnit(300));
    

提交回复
热议问题