views:

74

answers:

1

Hello everyone.

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.

A: 

Ok that was pretty simple enough.

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