如何控制条形图Y轴上数值的增量

How to control the increments of values on the Y-Axis of BarChart

我正在尝试统一我的条形图,它的值范围很广。我试图调整刻度线和其他范围。本质上,我想增加 yAxis 的增量以按比例适合所有条形图。有什么想法吗?

此外,我应该注意,我得到的不是 NumberAxis,而是 ValueAxis。

提前致谢。

这就是我最终得到平方值的方法,包括动态设置 RangeAxis 范围。我还根据@FredK 的建议删除了 3d 元素。我使用的是 DefaultCategoryDataSet(绘图是 CategoryPlot),因此下面的代码适用于这些条件...

  LogAxis yAxis = new LogAxis("Transaction Time (ms)");

        yAxis.setBase(10);
        plot.setRangeAxis(yAxis);
        yAxis.setTickUnit(new NumberTickUnit(1));
        yAxis.setMinorTickMarksVisible(true);
        yAxis.setAutoRange(true);
        plot.setRangeAxis(yAxis);
        plot.getRangeAxis().setLabelFont(new Font("SansSerif", Font.BOLD, 14));
        plot.getRangeAxis().setTickLabelFont(new Font("SansSerif", Font.BOLD, 12));

        Double maximum = (Double) DatasetUtilities.findMaximumRangeValue(dataset);

        plot.getRangeAxis().setLowerBound(10);
        plot.getRangeAxis().setUpperBound(maximum * 1.6);