add autoscale feature for flot time chart