jfreechart: Gantt Chart Task Label Font Size

穿精又带淫゛_ 提交于 2019-12-02 08:30:58

Absent a complete example, this appears to be an artifact of adding a ChartPanel directly to a JscrollPane. Instead, use a SlidingGanttCategoryDataset which permits the use of setFirstCategoryIndex() in response to a scrollbar state change. SlidingGanttDatasetDemo1 is a complete example.

I got the answer to solve my problem.

Call ChartPanel.setMinimumDrawWidth/Height with small value and ChartPanel.setMaximumDrawWidth/Height with large values than exceed the screen size of your monitor. Then, the ChartPanel will be scaled without being distorted.

Please refer to: How to aviod axis label and legend scaling

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!