Added setDateLimitsFromActivity function in ChartView.