开发者

How to get static range for X axis (Range axis) in JFreechart

开发者 https://www.devze.com 2023-01-16 01:20 出处:网络
I am using Jfreechart in one of my projects. I have a peculiar problem with line chart. On X axis we have time as unit

I am using Jfreechart in one of my projects. I have a peculiar problem with line chart. On X axis we have time as unit I want to have sta开发者_开发知识库tic range for lets say for 300 secs and after that it should switch into autorange mode. How to do this.


Ok that was pretty simple enough.

domainAxis = plot.getDomainAxis();
domainAxis.setRange(0,300);
0

精彩评论

暂无评论...
验证码 换一张
取 消