add scrollbar to JFreeChart 3DBarChart

后端 未结 1 1320
我在风中等你
我在风中等你 2020-12-22 08:01

Can I add a scroll bar to the JFreeChart that allows me horizontally move the bar ?

JFreeChart chart = ChartFactory.createBarChart3D(
    ti         


        
相关标签:
1条回答
  • 2020-12-22 08:15

    .Yes you can, if you have access to the JFreeChart demo code just modify SlidingCategoryDatasetDemo2 and replace createBarChart3D with createBarChart3D and you will get this:

    3d Scrolling Chart

    You will need to use a SlidingCategoryDataset. You can find the source code and demos here JFreeChart

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