3
votes

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 static range for lets say for 300 secs and after that it should switch into autorange mode. How to do this.

1

1 Answers

3
votes

Ok that was pretty simple enough.

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