Formatting Y-axis on JFreeChart

后端 未结 2 1280
时光取名叫无心
时光取名叫无心 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.

    0 讨论(0)
  • 2021-01-23 02:10

    I would of done a byte conversion, converting from

    KB to MB=(KB/1024)
    KB to TB=(KB/(1024*2))
    KB to GB=(KB/(1024*3))
    KB to PB=(KB/(1024*4))
    

    Where the the NumberAxis should auto range depending on the value passed.

    0 讨论(0)
提交回复
热议问题