Formatting Y-axis on JFreeChart

后端 未结 2 1279
时光取名叫无心
时光取名叫无心 2021-01-23 01:39

I have a StackedXYAreaChart similar to the one below:

\"enter

On the Y-axis, inste

2条回答
  •  礼貌的吻别
    2021-01-23 02:10

    The static factory createStackedAreaChart() instatiates a NumberAxis for the range. The NumberAxis method createStandardTickUnits() creates the standard tick units, which may serve as an example for creating your own units. In particular, "If you don't like these defaults, create your own instance of TickUnits and then pass it to the setStandardTickUnits() method." There's more details here.

提交回复
热议问题